Skip to content

Commit

Permalink
CMakeLists: ignore old C# compiler
Browse files Browse the repository at this point in the history
  • Loading branch information
Tatsh committed Nov 18, 2023
1 parent 91383b5 commit da94f0e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
if(CMAKE_GENERATOR MATCHES "Visual Studio")
if(CMAKE_C_COMPILER_ID STREQUAL "MSVC" AND CMAKE_CSharp_COMPILER_VERSION VERSION_GREATER_EQUAL
4.7.0)
enable_language(CSharp)
add_library(
PSWinPrefs SHARED LibPrefs.cs RegisterSavePreferencesScheduledTask.cs SavePreferences.cs
Expand Down

0 comments on commit da94f0e

Please sign in to comment.