Selaa lähdekoodia

add MSVC support for win32

richarddobson 2 kuukautta sitten
vanhempi
sitoutus
b1eec5aad4
48 muutettua tiedostoa jossa 81 lisäystä ja 57 poistoa
  1. 1 1
      dev/blur/CMakeLists.txt
  2. 1 1
      dev/cdp2k/CMakeLists.txt
  3. 1 1
      dev/cdparams/CMakeLists.txt
  4. 1 1
      dev/cdparams_other/CMakeLists.txt
  5. 1 1
      dev/combine/CMakeLists.txt
  6. 1 1
      dev/distort/CMakeLists.txt
  7. 1 1
      dev/editsf/CMakeLists.txt
  8. 1 1
      dev/env/CMakeLists.txt
  9. 1 1
      dev/extend/CMakeLists.txt
  10. 1 1
      dev/externals/fastconv/CMakeLists.txt
  11. 6 2
      dev/externals/mctools/CMakeLists.txt
  12. 6 2
      dev/externals/paprogs/listaudevs/CMakeLists.txt
  13. 6 2
      dev/externals/paprogs/paplay/CMakeLists.txt
  14. 6 2
      dev/externals/paprogs/pvplay/CMakeLists.txt
  15. 6 2
      dev/externals/paprogs/recsf/CMakeLists.txt
  16. 1 1
      dev/externals/portsf/CMakeLists.txt
  17. 6 2
      dev/externals/reverb/CMakeLists.txt
  18. 1 1
      dev/filter/CMakeLists.txt
  19. 1 1
      dev/focus/CMakeLists.txt
  20. 1 1
      dev/formants/CMakeLists.txt
  21. 1 1
      dev/grain/CMakeLists.txt
  22. 1 1
      dev/hfperm/CMakeLists.txt
  23. 1 1
      dev/hilite/CMakeLists.txt
  24. 1 1
      dev/houskeep/CMakeLists.txt
  25. 1 1
      dev/misc/CMakeLists.txt
  26. 1 1
      dev/modify/CMakeLists.txt
  27. 3 3
      dev/new/CMakeLists.txt
  28. 2 2
      dev/newsfsys/CMakeLists.txt
  29. 1 1
      dev/pagrab/CMakeLists.txt
  30. 1 1
      dev/paview/CMakeLists.txt
  31. 1 1
      dev/pitch/CMakeLists.txt
  32. 1 1
      dev/pitchinfo/CMakeLists.txt
  33. 1 1
      dev/pv/CMakeLists.txt
  34. 1 1
      dev/pview/CMakeLists.txt
  35. 1 1
      dev/pvxio2/CMakeLists.txt
  36. 1 1
      dev/repitch/CMakeLists.txt
  37. 1 1
      dev/science/CMakeLists.txt
  38. 1 1
      dev/sndinfo/CMakeLists.txt
  39. 1 1
      dev/spec/CMakeLists.txt
  40. 1 1
      dev/specinfo/CMakeLists.txt
  41. 1 1
      dev/standalone/CMakeLists.txt
  42. 1 1
      dev/standnew/CMakeLists.txt
  43. 1 1
      dev/strange/CMakeLists.txt
  44. 1 1
      dev/stretch/CMakeLists.txt
  45. 1 1
      dev/submix/CMakeLists.txt
  46. 1 1
      dev/synth/CMakeLists.txt
  47. 1 1
      dev/tabedit/CMakeLists.txt
  48. 1 1
      dev/texture/CMakeLists.txt

+ 1 - 1
dev/blur/CMakeLists.txt

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

+ 1 - 1
dev/cdp2k/CMakeLists.txt

@@ -1,7 +1,7 @@
 if(APPLE)
   set(CMAKE_C_FLAGS "-O -Wall  -Dunix")
 else()
-  if(MINGW)
+  if(MINGW OR MSVC)
     set(CMAKE_C_FLAGS "-O2 -Wall -DWIN32 -D_WIN32")
   else()
     set(CMAKE_C_FLAGS "-O2 -Wall -DCDP97 -Dunix -Dlinux -D_X86_")

+ 1 - 1
dev/cdparams/CMakeLists.txt

@@ -1,7 +1,7 @@
 if(APPLE)
   set(CMAKE_C_FLAGS "-O2 -Wall  -Dunix")
 else()
-  if(MINGW)
+  if(MINGW OR MSVC)
     set(CMAKE_C_FLAGS "-O2 -Wall -DWIN32 -D_WIN32")
   else()
     set(CMAKE_C_FLAGS "-O2 -Wall -Dlinux -Dunix")

+ 1 - 1
dev/cdparams_other/CMakeLists.txt

@@ -1,7 +1,7 @@
 if(APPLE)
   set(CMAKE_C_FLAGS "-O2 -Wall  -Dunix")
 else()
-  if(MINGW)
+  if(MINGW OR MSVC)
     set(CMAKE_C_FLAGS "-O2 -Wall -DWIN32 -D_WIN32")
   else()
     set(CMAKE_C_FLAGS "-O2 -Wall -Dlinux -Dunix")

+ 1 - 1
dev/combine/CMakeLists.txt

@@ -1,7 +1,7 @@
 if(APPLE)
   set(CMAKE_C_FLAGS "-O2 -Wall  -Dunix")
 else()
-  if(MINGW)
+  if(MINGW OR MSVC)
     set(CMAKE_C_FLAGS "-O2 -Wall -DWIN32")
   else()
     set(CMAKE_C_FLAGS "-O2 -Wall -Dlinux -Dunix")

+ 1 - 1
dev/distort/CMakeLists.txt

@@ -1,7 +1,7 @@
 if(APPLE)
   set(CMAKE_C_FLAGS "-O2 -Wall -Dunix")
 else()
-  if(MINGW)
+  if(MINGW OR MSVC)
     set(CMAKE_C_FLAGS "-O2 -Wall -DWIN32")
   else()
     set(CMAKE_C_FLAGS "-O2 -Wall -Dlinux -Dunix")

+ 1 - 1
dev/editsf/CMakeLists.txt

@@ -1,7 +1,7 @@
 if(APPLE)
   set(CMAKE_C_FLAGS "-O2 -Wall  -Dunix")
 else()
-  if(MINGW)
+  if(MINGW OR MSVC)
     set(CMAKE_C_FLAGS "-O2 -Wall -DWIN32")
   else()
     set(CMAKE_C_FLAGS "-O2 -Wall -Dlinux -Dunix")

+ 1 - 1
dev/env/CMakeLists.txt

@@ -1,7 +1,7 @@
 if(APPLE)
   set(CMAKE_C_FLAGS "-O2 -Wall  -Dunix")
 else()
-  if(MINGW)
+  if(MINGW OR MSVC)
     set(CMAKE_C_FLAGS "-O2 -Wall -DWIN32")
   else()
     set(CMAKE_C_FLAGS "-O2 -Wall -Dlinux -Dunix")

+ 1 - 1
dev/extend/CMakeLists.txt

@@ -1,7 +1,7 @@
 if(APPLE)
   set(CMAKE_C_FLAGS "-O2 -Wall -Dunix")
 else()
-  if(MINGW)
+  if(MINGW OR MSVC)
     set(CMAKE_C_FLAGS "-O2 -Wall -DWIN32")
   else()
     set(CMAKE_C_FLAGS "-O2 -Wall -Dlinux -Dunix")

+ 1 - 1
dev/externals/fastconv/CMakeLists.txt

@@ -2,7 +2,7 @@ if(APPLE)
   set(CMAKE_C_FLAGS "-O2 -Wall  -Dunix -fomit-frame-pointer -funroll-loops")
   set(CMAKE_CXX_FLAGS "-O2 -Wall  -Dunix -fomit-frame-pointer -funroll-loops  -std=c++11 -stdlib=libc++")
 else()
-  if(MINGW)
+  if(MINGW OR MSVC)
     set(CMAKE_C_FLAGS "-O3 -DWIN32 -D_WIN32 -fomit-frame-pointer  -funroll-loops")
     set(CMAKE_CXX_FLAGS "-O3 -DWIN32 -D_WIN32 -fomit-frame-pointer  -funroll-loops -static-libgcc -static-libstdc++")
   else()

+ 6 - 2
dev/externals/mctools/CMakeLists.txt

@@ -3,9 +3,13 @@ if(APPLE)
   set(CMAKE_CXX_FLAGS "-O2 -Wall  -Dunix -fomit-frame-pointer -funroll-loops -std=c++11 -stdlib=libc++")
 #  SET(CMAKE_EXE_LINKER_FLAGS "-static")
 else()
-  if(MINGW)
+  if(MINGW OR MSVC)
     set(CMAKE_C_FLAGS "-O3 -DWIN32 -D_WIN32 -fomit-frame-pointer  -funroll-loops")
-    set(CMAKE_CXX_FLAGS "-O3 -DWIN32 -D_WIN32 -fomit-frame-pointer  -funroll-loops -static-libgcc -static-libstdc++")
+    if(MINGW)
+        set(CMAKE_CXX_FLAGS "-O3 -DWIN32 -D_WIN32 -fomit-frame-pointer  -funroll-loops -static-libgcc -static-libstdc++")
+    else()
+        set(CMAKE_CXX_FLAGS "-O3 -DWIN32 -D_WIN32 -fomit-frame-pointer  -funroll-loops)
+    endif
   else()
     set(CMAKE_C_FLAGS "-O3 -Wall -Dlinux -Dunix -fomit-frame-pointer -funroll-loops")
   endif()

+ 6 - 2
dev/externals/paprogs/listaudevs/CMakeLists.txt

@@ -10,9 +10,13 @@ if(APPLE)
   find_library(PA NAMES libportaudio.a)
   set(EXTRA_LIBRARIES1 ${PA} ${COREAUDIOLIB} ${AUDIOTOOLBOX} ${AULIB} ${CARBONLIB} ${EXTRA_LIBRARIES})
 else()
-  if(MINGW)
+  if(MINGW OR MSVC)
     set(CMAKE_C_FLAGS "-O3 -DWIN32 -D_WIN32 -fomit-frame-pointer  -funroll-loops")
-    set(CMAKE_CXX_FLAGS "-O3 -DWIN32 -D_WIN32 -DUSE_ASIO -fomit-frame-pointer  -funroll-loops -static-libgcc -static-libstdc++")
+    if(MINGW)
+        set(CMAKE_CXX_FLAGS "-O3 -DWIN32 -D_WIN32 -DUSE_ASIO -fomit-frame-pointer  -funroll-loops -static-libgcc -static-libstdc++")
+    else()
+        set(CMAKE_CXX_FLAGS "-O3 -DWIN32 -D_WIN32 -DUSE_ASIO -fomit-frame-pointer  -funroll-loops)
+    endif()
     link_directories(/usr/local/lib)
     find_library(PA NAMES libportaudio.a)
 #    NB winmm must appear after any module that references it. Yes, that's weird.

+ 6 - 2
dev/externals/paprogs/paplay/CMakeLists.txt

@@ -13,9 +13,13 @@ if(APPLE)
 #  set(EXTRA_LIBRARIES1 portsf pthread ${AAIOLIB} ${PA}  ${COREAUDIOLIB} ${AUDIOTOOLBOX} ${AULIB} ${CARBONLIB} ${CORESERV} ${EXTRA_LIBRARIES})
   set(EXTRA_LIBRARIES1 portsf pthread aaio ${PA}  ${COREAUDIOLIB} ${AUDIOTOOLBOX} ${AULIB} ${CARBONLIB} ${CORESERV} ${EXTRA_LIBRARIES})
 else()
-  if(MINGW)
+  if(MINGW OR MSVC)
     set(CMAKE_C_FLAGS "-O3 -DWIN32 -D_WIN32 -DUSE_ASIO -fomit-frame-pointer -funroll-loops")
-    set(CMAKE_CXX_FLAGS "-O3 -DWIN32 -D_WIN32 -DUSE_ASIO -fomit-frame-pointer  -funroll-loops -static-libgcc -static-libstdc++")
+    if(MINGW)
+        set(CMAKE_CXX_FLAGS "-O3 -DWIN32 -D_WIN32 -DUSE_ASIO -fomit-frame-pointer  -funroll-loops -static-libgcc -static-libstdc++")
+    else()
+        set(CMAKE_CXX_FLAGS "-O3 -DWIN32 -D_WIN32 -DUSE_ASIO -fomit-frame-pointer  -funroll-loops)
+    endif()
     link_directories(/usr/local/lib)
     find_library(PA NAMES libportaudio.a)
 #    NB winmm must appear after any module that references it. Yes, that's weird.

+ 6 - 2
dev/externals/paprogs/pvplay/CMakeLists.txt

@@ -12,9 +12,13 @@ if(APPLE)
 # find_library(AAIOLIB NAMES libaaio.a)
   set(EXTRA_LIBRARIES1 pthread  ${PA} aaio ${COREAUDIOLIB} ${AUDIOTOOLBOX} ${AULIB} ${CARBONLIB} ${EXTRA_LIBRARIES})
 else()
-  if(MINGW)
+  if(MINGW OR MSVC)
     set(CMAKE_C_FLAGS "-O3 -DWIN32 -D_WIN32 -DUSE_ASIO -fomit-frame-pointer -funroll-loops")
-    set(CMAKE_CXX_FLAGS "-O3 -DWIN32 -D_WIN32 -DUSE_ASIO -fomit-frame-pointer -funroll-loops -static-libgcc -static-libstdc++")
+    if(MINGW)
+        set(CMAKE_CXX_FLAGS "-O3 -DWIN32 -D_WIN32 -DUSE_ASIO -fomit-frame-pointer -funroll-loops -static-libgcc -static-libstdc++")
+    else()
+        set(CMAKE_CXX_FLAGS "-O3 -DWIN32 -D_WIN32 -DUSE_ASIO -fomit-frame-pointer -funroll-loops)
+    endif()
     link_directories(/usr/local/lib)
     find_library(PA NAMES libportaudio.a)
 #    NB winmm must appear after any module that references it. Yes, that's weird.

+ 6 - 2
dev/externals/paprogs/recsf/CMakeLists.txt

@@ -11,9 +11,13 @@ if(APPLE)
 #  find_library(AAIOLIB NAMES libaaio.a)
   set(EXTRA_LIBRARIES1 portsf pthread aaio ${PA} ${COREAUDIOLIB} ${AUDIOTOOLBOX} ${AULIB} ${CARBONLIB} ${EXTRA_LIBRARIES})
 else()
-  if(MINGW)
+  if(MINGW OR MSVC)
     set(CMAKE_C_FLAGS "-O3 -DWIN32 -D_WIN32 -DUSE_ASIO -fomit-frame-pointer -funroll-loops")
-    set(CMAKE_CXX_FLAGS "-O3 -DWIN32 -D_WIN32 -DUSE_ASIO -fomit-frame-pointer  -funroll-loops -static-libgcc -static-libstdc++")
+    if(MINGW)
+    	set(CMAKE_CXX_FLAGS "-O3 -DWIN32 -D_WIN32 -DUSE_ASIO -fomit-frame-pointer  -funroll-loops -static-libgcc -static-libstdc++")
+    else()
+        set(CMAKE_CXX_FLAGS "-O3 -DWIN32 -D_WIN32 -DUSE_ASIO -fomit-frame-pointer  -funroll-loops)
+    endif()
     link_directories(/usr/local/lib)
     find_library(PA NAMES libportaudio.a)
 #    NB winmm must appear after any module that references it. Yes, that's weird.

+ 1 - 1
dev/externals/portsf/CMakeLists.txt

@@ -1,7 +1,7 @@
 if(APPLE)
   set(CMAKE_C_FLAGS "-O2 -Wall  -Dunix")
 else()
-  if(MINGW)
+  if(MINGW OR MSVC)
     set(CMAKE_C_FLAGS "-O2")
   else()
     set(CMAKE_C_FLAGS "-O2 -Dunix -Dlinux")

+ 6 - 2
dev/externals/reverb/CMakeLists.txt

@@ -2,9 +2,13 @@ if(APPLE)
   set(CMAKE_C_FLAGS "-O2 -Wall  -Dunix -fomit-frame-pointer -funroll-loops")
   set(CMAKE_CXX_FLAGS "-O2 -Wall   -Dunix -fomit-frame-pointer -funroll-loops -std=c++11 -stdlib=libc++")
 else()
-  if(MINGW)
+  if(MINGW OR MSVC)
     set(CMAKE_C_FLAGS "-O3 -DWIN32 -D_WIN32 -fomit-frame-pointer  -funroll-loops")
-    set(CMAKE_CXX_FLAGS "-O3 -DWIN32 -D_WIN32 -fomit-frame-pointer  -funroll-loops -static-libgcc -static-libstdc++")
+    if(MINGW)
+        set(CMAKE_CXX_FLAGS "-O3 -DWIN32 -D_WIN32 -fomit-frame-pointer  -funroll-loops -static-libgcc -static-libstdc++")
+    else()
+        set(CMAKE_CXX_FLAGS "-O3 -DWIN32 -D_WIN32 -fomit-frame-pointer  -funroll-loops
+    endif()
   else()
     set(CMAKE_C_FLAGS "-O3 -Wall -Dlinux -Dunix -fomit-frame-pointer -funroll-loops")
   endif()

+ 1 - 1
dev/filter/CMakeLists.txt

@@ -1,7 +1,7 @@
 if(APPLE)
   set(CMAKE_C_FLAGS "-O2 -Wall  -Dunix")
 else()
-  if(MINGW)
+  if(MINGW OR MSVC)
     set(CMAKE_C_FLAGS "-O2 -Wall -DWIN32")
   else()
     set(CMAKE_C_FLAGS "-O2 -Wall -Dlinux -Dunix")

+ 1 - 1
dev/focus/CMakeLists.txt

@@ -1,7 +1,7 @@
 if(APPLE)
   set(CMAKE_C_FLAGS "-O2 -Wall  -Dunix")
 else()
-  if(MINGW)
+  if(MINGW OR MSVC)
     set(CMAKE_C_FLAGS "-O2 -Wall -DWIN32")
   else()
     set(CMAKE_C_FLAGS "-O2 -Wall -Dlinux -Dunix")

+ 1 - 1
dev/formants/CMakeLists.txt

@@ -1,7 +1,7 @@
 if(APPLE)
   set(CMAKE_C_FLAGS "-O2 -Wall -Dunix")
 else()
-  if(MINGW)
+  if(MINGW OR MSVC)
     set(CMAKE_C_FLAGS "-O2 -Wall -DWIN32")
   else()
     set(CMAKE_C_FLAGS "-O2 -Wall -Dlinux -Dunix")

+ 1 - 1
dev/grain/CMakeLists.txt

@@ -1,7 +1,7 @@
 if(APPLE)
   set(CMAKE_C_FLAGS "-O2 -Wall  -Dunix")
 else()
-  if(MINGW)
+  if(MINGW OR MSVC)
     set(CMAKE_C_FLAGS "-O2 -Wall -DWIN32")
   else()
     set(CMAKE_C_FLAGS "-O2 -Wall -Dlinux -Dunix")

+ 1 - 1
dev/hfperm/CMakeLists.txt

@@ -1,7 +1,7 @@
 if(APPLE)
   set(CMAKE_C_FLAGS "-O2 -Wall -Dunix")
 else()
-  if(MINGW)
+  if(MINGW OR MSVC)
     set(CMAKE_C_FLAGS "-O2 -Wall -DWIN32")
   else()
     set(CMAKE_C_FLAGS "-O2 -Wall -Dlinux -Dunix")

+ 1 - 1
dev/hilite/CMakeLists.txt

@@ -1,7 +1,7 @@
 if(APPLE)
   set(CMAKE_C_FLAGS "-O2 -Wall -Dunix")
 else()
-  if(MINGW)
+  if(MINGW OR MSVC)
     set(CMAKE_C_FLAGS "-O2 -Wall -DWIN32")
   else()
     set(CMAKE_C_FLAGS "-O2 -Wall -Dlinux -Dunix")

+ 1 - 1
dev/houskeep/CMakeLists.txt

@@ -1,7 +1,7 @@
 if(APPLE)
   set(CMAKE_C_FLAGS "-O2 -Wall -Dunix")
 else()
-  if(MINGW)
+  if(MINGW OR MSVC)
     set(CMAKE_C_FLAGS "-O2 -Wall -DWIN32")
   else()
     set(CMAKE_C_FLAGS "-O2 -Wall -Dlinux -Dunix")

+ 1 - 1
dev/misc/CMakeLists.txt

@@ -1,7 +1,7 @@
 if(APPLE)
   set(CMAKE_C_FLAGS "-O2 -Wall -Dunix")
 else()
-  if(MINGW)
+  if(MINGW OR MSVC)
     set(CMAKE_C_FLAGS "-O2 -Wall -DWIN32")
   else()
     set(CMAKE_C_FLAGS "-O2 -Wall -Dlinux -Dunix")

+ 1 - 1
dev/modify/CMakeLists.txt

@@ -1,7 +1,7 @@
 if(APPLE)
   set(CMAKE_C_FLAGS "-O2 -Wall -Dunix")
 else()
-  if(MINGW)
+  if(MINGW OR MSVC)
     set(CMAKE_C_FLAGS "-O2 -Wall -DWIN32")
   else()
     set(CMAKE_C_FLAGS "-O2 -Wall -Dlinux -Dunix")

+ 3 - 3
dev/new/CMakeLists.txt

@@ -3,7 +3,7 @@ if(APPLE)
   link_directories (/usr/local/lib)
 #  find_library(AAIOLIB NAMES libaaio.a)
 else()
-  if(MINGW)
+  if(MINGW OR MSVC)
     set(CMAKE_C_FLAGS "-O2 -Wall -DWIN32")
   else()
     set(CMAKE_C_FLAGS "-O2 -Wall -Dlinux -Dunix")
@@ -42,7 +42,7 @@ target_link_libraries(filtrage cdp2k sfsys pvxio2 ${EXTRA_LIBRARIES})
 my_install(filtrage)
 
 add_executable(fracture fracture.c)
-if(MINGW)
+if(MINGW OR MSVC)
 target_link_libraries(fracture cdp2k sfsys pvxio2 ${EXTRA_LIBRARIES})
 else()
 target_link_libraries(fracture cdp2k sfsys pvxio2 aaio ${EXTRA_LIBRARIES})
@@ -60,7 +60,7 @@ target_link_libraries(isolate cdp2k sfsys pvxio2 ${EXTRA_LIBRARIES})
 my_install(isolate)
 
 add_executable(iterfof iterfof.c)
-if(MINGW)
+if(MINGW OR MSVC)
 target_link_libraries(iterfof cdp2k sfsys pvxio2 ${EXTRA_LIBRARIES})
 else()
 target_link_libraries(iterfof cdp2k sfsys pvxio2 aaio ${EXTRA_LIBRARIES})

+ 2 - 2
dev/newsfsys/CMakeLists.txt

@@ -2,7 +2,7 @@
 if(APPLE)
   set(CMAKE_C_FLAGS "-O2 -Dunix -D__MAC__ -DMAC -DENABLE_PVX")
 else()
-  if(MINGW)
+  if(MINGW OR MSVC)
     set(CMAKE_C_FLAGS "-O2 -D_X86_ -DWIN32 -D_WIN32 -D__GNUWIN32__ -DENABLE_PVX")
   else()
     set(CMAKE_C_FLAGS "-O2 -Dunix -Dlinux -D_X86_ -DENABLE_PVX")
@@ -11,7 +11,7 @@ endif()
 
 include_directories(../newinclude)
 
-if(MINGW)
+if(MINGW OR MSVC)
    set(SFSYS_SRCS sfsys.c snd.c sfdir.c osbind.c props.c shortcuts.c scandir.c alias.c ieee80.c)
 else()
    set(SFSYS_SRCS sfsys.c snd.c sfdir.c osbind.c props.c ieee80.c pvfileio.c)

+ 1 - 1
dev/pagrab/CMakeLists.txt

@@ -1,7 +1,7 @@
 if(APPLE)
   set(CMAKE_C_FLAGS "-O2 -Wall -Dunix")
 else()
-  if(MINGW)
+  if(MINGW OR MSVC)
     set(CMAKE_C_FLAGS "-O2 -Wall -DWIN32")
   else()
     set(CMAKE_C_FLAGS "-O2 -Wall -Dlinux -Dunix")

+ 1 - 1
dev/paview/CMakeLists.txt

@@ -1,7 +1,7 @@
 if(APPLE)
   set(CMAKE_C_FLAGS "-O2 -Wall -Dunix")
 else()
-  if(MINGW)
+  if(MINGW OR MSVC)
     set(CMAKE_C_FLAGS "-O2 -Wall -DWIN32")
   else()
     set(CMAKE_C_FLAGS "-O2 -Wall -Dlinux -Dunix")

+ 1 - 1
dev/pitch/CMakeLists.txt

@@ -1,7 +1,7 @@
 if(APPLE)
   set(CMAKE_C_FLAGS "-O2 -Wall  -Dunix")
 else()
-  if(MINGW)
+  if(MINGW OR MSVC)
     set(CMAKE_C_FLAGS "-O2 -Wall -DWIN32")
   else()
     set(CMAKE_C_FLAGS "-O2 -Wall -Dlinux -Dunix")

+ 1 - 1
dev/pitchinfo/CMakeLists.txt

@@ -1,7 +1,7 @@
 if(APPLE)
   set(CMAKE_C_FLAGS "-O2 -Wall  -Dunix")
 else()
-  if(MINGW)
+  if(MINGW OR MSVC)
     set(CMAKE_C_FLAGS "-O2 -Wall -DWIN32")
   else()
     set(CMAKE_C_FLAGS "-O2 -Wall -Dlinux -Dunix")

+ 1 - 1
dev/pv/CMakeLists.txt

@@ -1,7 +1,7 @@
 if(APPLE)
   set(CMAKE_C_FLAGS "-O2 -Wall -Dunix")
 else()
-  if(MINGW)
+  if(MINGW OR MSVC)
     set(CMAKE_C_FLAGS "-O2 -Wall -DWIN32")
   else()
     set(CMAKE_C_FLAGS "-O2 -Wall -Dlinux -Dunix")

+ 1 - 1
dev/pview/CMakeLists.txt

@@ -1,7 +1,7 @@
 if(APPLE)
   set(CMAKE_C_FLAGS "-O2 -Wall  -Dunix")
 else()
-  if(MINGW)
+  if(MINGW OR MSVC)
     set(CMAKE_C_FLAGS "-O2 -Wall -DWIN32")
   else()
     set(CMAKE_C_FLAGS "-O2 -Wall -Dlinux -Dunix")

+ 1 - 1
dev/pvxio2/CMakeLists.txt

@@ -1,7 +1,7 @@
 if(APPLE)
   set(CMAKE_C_FLAGS "-O -Wall -Dunix")
 else()
-  if(MINGW)
+  if(MINGW OR MSVC)
     set(CMAKE_C_FLAGS "-O2 -Wall -DWIN32 -D_WIN32")
   else()
     set(CMAKE_C_FLAGS "-O2 -Wall -DCDP97 -Dunix -Dlinux -D_X86_")

+ 1 - 1
dev/repitch/CMakeLists.txt

@@ -1,7 +1,7 @@
 if(APPLE)
   set(CMAKE_C_FLAGS "-O2 -Wall  -Dunix")
 else()
-  if(MINGW)
+  if(MINGW OR MSVC)
     set(CMAKE_C_FLAGS "-O2 -Wall -DWIN32")
   else()
     set(CMAKE_C_FLAGS "-O2 -Wall -Dlinux -Dunix")

+ 1 - 1
dev/science/CMakeLists.txt

@@ -3,7 +3,7 @@ if(APPLE)
    link_directories (/usr/local/lib)
 #   find_library(AAIOLIB NAMES libaaio.a)
 else()
-  if(MINGW)
+  if(MINGW OR MSVC)
     set(CMAKE_C_FLAGS "-O2 -Wall -DWIN32")
   else()
     set(CMAKE_C_FLAGS "-O2 -Wall -Dlinux -Dunix")

+ 1 - 1
dev/sndinfo/CMakeLists.txt

@@ -1,7 +1,7 @@
 if(APPLE)
   set(CMAKE_C_FLAGS "-O2 -Wall  -Dunix")
 else()
-  if(MINGW)
+  if(MINGW OR MSVC)
     set(CMAKE_C_FLAGS "-O2 -Wall -DWIN32")
   else()
     set(CMAKE_C_FLAGS "-O2 -Wall -Dlinux -Dunix")

+ 1 - 1
dev/spec/CMakeLists.txt

@@ -1,7 +1,7 @@
 if(APPLE)
   set(CMAKE_C_FLAGS "-O2 -Wall  -Dunix")
 else()
-  if(MINGW)
+  if(MINGW OR MSVC)
     set(CMAKE_C_FLAGS "-O2 -Wall -DWIN32")
   else()
     set(CMAKE_C_FLAGS "-O2 -Wall -Dlinux -Dunix")

+ 1 - 1
dev/specinfo/CMakeLists.txt

@@ -1,7 +1,7 @@
 if(APPLE)
   set(CMAKE_C_FLAGS "-O2 -Wall -Dunix")
 else()
-  if(MINGW)
+  if(MINGW OR MSVC)
     set(CMAKE_C_FLAGS "-O2 -Wall -DWIN32")
   else()
     set(CMAKE_C_FLAGS "-O2 -Wall -Dlinux -Dunix")

+ 1 - 1
dev/standalone/CMakeLists.txt

@@ -1,7 +1,7 @@
 if(APPLE)
   set(CMAKE_C_FLAGS "-O2 -Wall -Dunix")
 else()
-  if(MINGW)
+  if(MINGW OR MSVC)
     set(CMAKE_C_FLAGS "-O2 -Wall -DWIN32")
   else()
     set(CMAKE_C_FLAGS "-O2 -Wall -Dlinux -Dunix")

+ 1 - 1
dev/standnew/CMakeLists.txt

@@ -3,7 +3,7 @@ if(APPLE)
   link_directories (/usr/local/lib)
   find_library(AAIOLIB NAMES libaaio.a)
 else()
-  if(MINGW)
+  if(MINGW OR MSVC)
     set(CMAKE_C_FLAGS "-O2 -Wall -DWIN32")
   else()
     set(CMAKE_C_FLAGS "-O2 -Wall -Dlinux -Dunix")

+ 1 - 1
dev/strange/CMakeLists.txt

@@ -1,7 +1,7 @@
 if(APPLE)
   set(CMAKE_C_FLAGS "-O2 -Wall -Dunix")
 else()
-  if(MINGW)
+  if(MINGW OR MSVC)
     set(CMAKE_C_FLAGS "-O2 -Wall -DWIN32")
   else()
     set(CMAKE_C_FLAGS "-O2 -Wall -Dlinux -Dunix")

+ 1 - 1
dev/stretch/CMakeLists.txt

@@ -1,7 +1,7 @@
 if(APPLE)
   set(CMAKE_C_FLAGS "-O2 -Wall -Dunix")
 else()
-  if(MINGW)
+  if(MINGW OR MSVC)
     set(CMAKE_C_FLAGS "-O2 -Wall -DWIN32")
   else()
     set(CMAKE_C_FLAGS "-O2 -Wall -Dlinux -Dunix")

+ 1 - 1
dev/submix/CMakeLists.txt

@@ -1,7 +1,7 @@
 if(APPLE)
   set(CMAKE_C_FLAGS "-O2 -Wall -Dunix")
 else()
-  if(MINGW)
+  if(MINGW OR MSVC)
     set(CMAKE_C_FLAGS "-O2 -Wall -DWIN32")
   else()
     set(CMAKE_C_FLAGS "-O2 -Wall -Dlinux -Dunix")

+ 1 - 1
dev/synth/CMakeLists.txt

@@ -1,7 +1,7 @@
 if(APPLE)
   set(CMAKE_C_FLAGS "-O2 -Wall -Dunix")
 else()
-  if(MINGW)
+  if(MINGW OR MSVC)
     set(CMAKE_C_FLAGS "-O2 -Wall -DWIN32")
   else()
     set(CMAKE_C_FLAGS "-O2 -Wall -Dlinux -Dunix")

+ 1 - 1
dev/tabedit/CMakeLists.txt

@@ -1,7 +1,7 @@
 if(APPLE)
   set(CMAKE_C_FLAGS "-O2 -Wall  -Dunix")
 else()
-  if(MINGW)
+  if(MINGW OR MSVC)
     set(CMAKE_C_FLAGS "-O2 -Wall -DWIN32")
   else()
     set(CMAKE_C_FLAGS "-O2 -Wall -Dlinux -Dunix")

+ 1 - 1
dev/texture/CMakeLists.txt

@@ -1,7 +1,7 @@
 if(APPLE)
   set(CMAKE_C_FLAGS "-O2 -Wall -Dunix")
 else()
-  if(MINGW)
+  if(MINGW OR MSVC)
     set(CMAKE_C_FLAGS "-O2 -Wall -DWIN32")
   else()
     set(CMAKE_C_FLAGS "-O2 -Wall -Dlinux -Dunix")