X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=CMakeLists.txt;h=4b3c0e10d326536e777ed4775c9cb6a208b32100;hb=4abcf3215f6322c467718c69d0968e123231f9fa;hp=7bf7503970134c8e7baaf653690d82db2caf1444;hpb=4bf4091ef79e53e41c7b0463f58d8fc4c9777f22;p=simgear.git diff --git a/CMakeLists.txt b/CMakeLists.txt index 7bf75039..4b3c0e10 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -115,7 +115,6 @@ find_package(Threads REQUIRED) if(SIMGEAR_HEADLESS) message(STATUS "headless mode") - set(NO_OPENSCENEGRAPH_INTERFACE 1) else() find_package(OpenGL REQUIRED) find_package(OpenAL REQUIRED) @@ -202,6 +201,10 @@ endif(CMAKE_COMPILER_IS_GNUCXX) if(WIN32) + if(MINGW) + add_definitions(-D_WIN32_WINNT=0x501) + endif() + if(MSVC) # turn off various warnings # foreach(warning 4244 4251 4267 4275 4290 4786 4305 4996) @@ -218,7 +221,7 @@ if(WIN32) set( RT_LIBRARY "winmm" ) endif(WIN32) -if (${CMAKE_CXX_COMPILER_ID} STREQUAL "Clang") +if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang") set (WARNING_FLAGS "-Wall -Wno-overloaded-virtual") endif()