From 77da3d9b7944f1fdc8d45c35ffe6653e700d7f68 Mon Sep 17 00:00:00 2001 From: Andy Cedilnik Date: Fri, 16 Mar 2007 09:34:40 -0400 Subject: COMP: Fix support for old CMake (2.0 and 2.2) --- Utilities/cmcurl/CMake/CMakeConfigurableFile.in | 2 ++ Utilities/cmcurl/CMake/CheckCSourceCompiles.cmake | 2 +- Utilities/cmcurl/CMake/CheckCSourceRuns.cmake | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) create mode 100644 Utilities/cmcurl/CMake/CMakeConfigurableFile.in diff --git a/Utilities/cmcurl/CMake/CMakeConfigurableFile.in b/Utilities/cmcurl/CMake/CMakeConfigurableFile.in new file mode 100644 index 0000000..4cf74a1 --- /dev/null +++ b/Utilities/cmcurl/CMake/CMakeConfigurableFile.in @@ -0,0 +1,2 @@ +@CMAKE_CONFIGURABLE_FILE_CONTENT@ + diff --git a/Utilities/cmcurl/CMake/CheckCSourceCompiles.cmake b/Utilities/cmcurl/CMake/CheckCSourceCompiles.cmake index 41762b4..2967b0f 100644 --- a/Utilities/cmcurl/CMake/CheckCSourceCompiles.cmake +++ b/Utilities/cmcurl/CMake/CheckCSourceCompiles.cmake @@ -44,7 +44,7 @@ MACRO(CHECK_C_SOURCE_COMPILES SOURCE VAR) SET(src "${src}\nint main() { ${SOURCE} ; return 0; }") 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" IMMEDIATE) MESSAGE(STATUS "Performing Test ${message}") diff --git a/Utilities/cmcurl/CMake/CheckCSourceRuns.cmake b/Utilities/cmcurl/CMake/CheckCSourceRuns.cmake index 3462d9b..e78a71c 100644 --- a/Utilities/cmcurl/CMake/CheckCSourceRuns.cmake +++ b/Utilities/cmcurl/CMake/CheckCSourceRuns.cmake @@ -44,7 +44,7 @@ MACRO(CHECK_C_SOURCE_RUNS SOURCE VAR) SET(src "${src}\nint main() { ${SOURCE} ; return 0; }") 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" IMMEDIATE) MESSAGE(STATUS "Performing Test ${message}") -- cgit v0.12