1
0
Fork 0

Cmake: fix SimGear version check for MSVC

This commit is contained in:
Frederic Bouvier 2011-01-03 18:58:15 +01:00
parent f032943f46
commit c8bdf8c198

View file

@ -131,10 +131,11 @@ include(CheckCXXSourceRuns)
message(STATUS "looking for version: ${SimGear_FIND_VERSION}")
SET(CMAKE_REQUIRED_INCLUDES ${SIMGEAR_INCLUDE_DIR})
message(STATUS "Version Simgear include " ${CMAKE_REQUIRED_INCLUDES})
check_cxx_source_runs(
"#include <cstdio>
#include <simgear/version.h>
#include \"simgear/version.h\"
#define xstr(s) str(s)
#define str(s) #s