COMP: Fix support for old CMake (2.0 and 2.2)
This commit is contained in:
parent
9408e16704
commit
77da3d9b79
|
@ -0,0 +1,2 @@
|
||||||
|
@CMAKE_CONFIGURABLE_FILE_CONTENT@
|
||||||
|
|
|
@ -44,7 +44,7 @@ MACRO(CHECK_C_SOURCE_COMPILES SOURCE VAR)
|
||||||
|
|
||||||
SET(src "${src}\nint main() { ${SOURCE} ; return 0; }")
|
SET(src "${src}\nint main() { ${SOURCE} ; return 0; }")
|
||||||
SET(CMAKE_CONFIGURABLE_FILE_CONTENT "${src}")
|
SET(CMAKE_CONFIGURABLE_FILE_CONTENT "${src}")
|
||||||
CONFIGURE_FILE(${CMAKE_ROOT}/Modules/CMakeConfigurableFile.in
|
CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/CMake/CMakeConfigurableFile.in
|
||||||
"${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeTmp/src.c"
|
"${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeTmp/src.c"
|
||||||
IMMEDIATE)
|
IMMEDIATE)
|
||||||
MESSAGE(STATUS "Performing Test ${message}")
|
MESSAGE(STATUS "Performing Test ${message}")
|
||||||
|
|
|
@ -44,7 +44,7 @@ MACRO(CHECK_C_SOURCE_RUNS SOURCE VAR)
|
||||||
|
|
||||||
SET(src "${src}\nint main() { ${SOURCE} ; return 0; }")
|
SET(src "${src}\nint main() { ${SOURCE} ; return 0; }")
|
||||||
SET(CMAKE_CONFIGURABLE_FILE_CONTENT "${src}")
|
SET(CMAKE_CONFIGURABLE_FILE_CONTENT "${src}")
|
||||||
CONFIGURE_FILE(${CMAKE_ROOT}/Modules/CMakeConfigurableFile.in
|
CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/CMake/CMakeConfigurableFile.in
|
||||||
"${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeTmp/src.c"
|
"${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeTmp/src.c"
|
||||||
IMMEDIATE)
|
IMMEDIATE)
|
||||||
MESSAGE(STATUS "Performing Test ${message}")
|
MESSAGE(STATUS "Performing Test ${message}")
|
||||||
|
|
Loading…
Reference in New Issue