Browse Source

Fix build for mingw-w64

Eduardo Bart 3 years ago
parent
commit
8309fee510
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      src/framework/CMakeLists.txt

+ 2
- 2
src/framework/CMakeLists.txt View File

@@ -160,7 +160,7 @@ endif()
160 160
 include(FindCXX11)
161 161
 
162 162
 # gcc compile flags
163
-set(WARNS_FLAGS "-Wall -Wextra -Wno-unused -Wno-unused-parameter")
163
+set(WARNS_FLAGS "-Wall -Wextra -Wno-unused -Wno-unused-parameter -Wno-unused-result")
164 164
 set(CMAKE_CXX_FLAGS                   "${CMAKE_CXX_FLAGS} ${WARNS_FLAGS} ${ARCH_FLAGS} ${CPP2011_FLAGS} -pipe")
165 165
 set(CMAKE_CXX_FLAGS_COMPILESPEED      "-O0")
166 166
 set(CMAKE_CXX_FLAGS_DEBUG             "-O0 -g")
@@ -267,7 +267,7 @@ endif()
267 267
 
268 268
 if(WIN32)
269 269
     set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mthreads")
270
-    set(framework_DEFINITIONS ${framework_DEFINITIONS} -D_WIN32_WINNT=0x0501)
270
+    set(framework_DEFINITIONS ${framework_DEFINITIONS} -D_WIN32_WINNT=0x0501 -DWIN32)
271 271
     #set(CMAKE_CXX_LINK_FLAGS "${CMAKE_CXX_LINK_FLAGS} -Wl,--large-address-aware") # strip all debug information
272 272
     set(SYSTEM_LIBRARIES "")
273 273
 else()

Loading…
Cancel
Save