From 670fa26f7ea587ee2c198b83007a1cf8fbfb847f Mon Sep 17 00:00:00 2001 From: Frederic Bouvier Date: Mon, 3 Jan 2011 22:47:11 +0100 Subject: [PATCH] Cmake: more windows tweaks --- CMakeLists.txt | 3 ++- src/Include/config_cmake.h.in | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 2c464cbda..ef8b6ade3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -99,6 +99,7 @@ find_package(SimGear 2.0.0 REQUIRED) check_include_file(unistd.h HAVE_UNISTD_H) check_include_file(sys/time.h HAVE_SYS_TIME_H) +check_include_file(windows.h HAVE_WINDOWS_H) # definition depends on OSG version set(CMAKE_REQUIRED_INCLUDES ${OPENSCENEGRAPH_INCLUDE_DIRS}) @@ -152,7 +153,7 @@ if(WIN32) # SET(WARNING_FLAGS "${WARNING_FLAGS} /wd${warning}") # endforeach(warning) - set(MSVC_FLAGS "-DNOMINMAX -D_USE_MATH_DEFINES -D_CRT_SECURE_NO_WARNINGS -D__CRT_NONSTDC_NO_WARNINGS") + set(MSVC_FLAGS "-DNOMINMAX -D_USE_MATH_DEFINES -D_CRT_SECURE_NO_WARNINGS -D_SCL_SECURE_NO_WARNINGS -D__CRT_NONSTDC_NO_WARNINGS") endif(MSVC) set(NOMINMAX 1) diff --git a/src/Include/config_cmake.h.in b/src/Include/config_cmake.h.in index de02ad902..4505aa2dc 100644 --- a/src/Include/config_cmake.h.in +++ b/src/Include/config_cmake.h.in @@ -17,6 +17,7 @@ #define ENABLE_AUDIO_SUPPORT 1 #cmakedefine HAVE_SYS_TIME_H +#cmakedefine HAVE_WINDOWS_H #cmakedefine HAVE_CULLSETTINGS_CLEAR_MASK #define VERSION "@FLIGHTGEAR_VERSION@"