Browse Source

updated for MSVC

richarddobson 4 months ago
parent
commit
8a88b160e6
1 changed files with 5 additions and 1 deletions
  1. 5 1
      dev/repitch/CMakeLists.txt

+ 5 - 1
dev/repitch/CMakeLists.txt

@@ -2,7 +2,11 @@ if(APPLE)
   set(CMAKE_C_FLAGS "-O2 -Wall  -Dunix")
 else()
   if(MINGW OR MSVC)
-    set(CMAKE_C_FLAGS "-O2 -Wall -DWIN32")
+    if(MSVC)
+       set(CMAKE_C_FLAGS "-O2 -Wall -DWIN32 /wd4738")
+    else()
+	set(CMAKE_C_FLAGS "-O2 -Wall -DWIN32")
+    endif()
   else()
     set(CMAKE_C_FLAGS "-O2 -Wall -Dlinux -Dunix")
   endif()