Fix build for mingw-w64
This commit is contained in:
parent
e6bec115ae
commit
8309fee510
|
@ -160,7 +160,7 @@ endif()
|
||||||
include(FindCXX11)
|
include(FindCXX11)
|
||||||
|
|
||||||
# gcc compile flags
|
# gcc compile flags
|
||||||
set(WARNS_FLAGS "-Wall -Wextra -Wno-unused -Wno-unused-parameter")
|
set(WARNS_FLAGS "-Wall -Wextra -Wno-unused -Wno-unused-parameter -Wno-unused-result")
|
||||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${WARNS_FLAGS} ${ARCH_FLAGS} ${CPP2011_FLAGS} -pipe")
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${WARNS_FLAGS} ${ARCH_FLAGS} ${CPP2011_FLAGS} -pipe")
|
||||||
set(CMAKE_CXX_FLAGS_COMPILESPEED "-O0")
|
set(CMAKE_CXX_FLAGS_COMPILESPEED "-O0")
|
||||||
set(CMAKE_CXX_FLAGS_DEBUG "-O0 -g")
|
set(CMAKE_CXX_FLAGS_DEBUG "-O0 -g")
|
||||||
|
@ -267,7 +267,7 @@ endif()
|
||||||
|
|
||||||
if(WIN32)
|
if(WIN32)
|
||||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mthreads")
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mthreads")
|
||||||
set(framework_DEFINITIONS ${framework_DEFINITIONS} -D_WIN32_WINNT=0x0501)
|
set(framework_DEFINITIONS ${framework_DEFINITIONS} -D_WIN32_WINNT=0x0501 -DWIN32)
|
||||||
#set(CMAKE_CXX_LINK_FLAGS "${CMAKE_CXX_LINK_FLAGS} -Wl,--large-address-aware") # strip all debug information
|
#set(CMAKE_CXX_LINK_FLAGS "${CMAKE_CXX_LINK_FLAGS} -Wl,--large-address-aware") # strip all debug information
|
||||||
set(SYSTEM_LIBRARIES "")
|
set(SYSTEM_LIBRARIES "")
|
||||||
else()
|
else()
|
||||||
|
|
Loading…
Reference in New Issue