aboutsummaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt10
1 files changed, 5 insertions, 5 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 9fe5837..1efe6bc 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -59,12 +59,12 @@ if(CMAKE_SYSTEM_NAME MATCHES "Linux")
59 set(PLATFORM_LIBS ${PLATFORM_LIBS} pthread) 59 set(PLATFORM_LIBS ${PLATFORM_LIBS} pthread)
60endif() 60endif()
61 61
62if(CMAKE_SYSTEM_NAME MATCHES "MINGW") 62if(WIN32 OR (CMAKE_SYSTEM_NAME MATCHES "MINGW"))
63 set(BUILD_NC false)
64endif()
65
66if(WIN32)
67 set(BUILD_NC false) 63 set(BUILD_NC false)
64 add_definitions(-D_GNU_SOURCE)
65 add_definitions(-D_POSIX)
66 add_definitions(-D_POSIX_SOURCE)
67 add_definitions(-D__USE_MINGW_ANSI_STDIO)
68endif() 68endif()
69 69
70set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O2 -Wall") 70set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O2 -Wall")