diff options
author | Andy Cedilnik <andy.cedilnik@kitware.com> | 2007-03-16 13:34:40 (GMT) |
---|---|---|
committer | Andy Cedilnik <andy.cedilnik@kitware.com> | 2007-03-16 13:34:40 (GMT) |
commit | 77da3d9b7944f1fdc8d45c35ffe6653e700d7f68 (patch) | |
tree | d1d423bcfbc042eea800cb41168734ed2093ebec /Utilities | |
parent | 9408e16704f204ae6ffe4036f3d0261b3a901ebe (diff) | |
download | CMake-77da3d9b7944f1fdc8d45c35ffe6653e700d7f68.zip CMake-77da3d9b7944f1fdc8d45c35ffe6653e700d7f68.tar.gz CMake-77da3d9b7944f1fdc8d45c35ffe6653e700d7f68.tar.bz2 |
COMP: Fix support for old CMake (2.0 and 2.2)
Diffstat (limited to 'Utilities')
-rw-r--r-- | Utilities/cmcurl/CMake/CMakeConfigurableFile.in | 2 | ||||
-rw-r--r-- | Utilities/cmcurl/CMake/CheckCSourceCompiles.cmake | 2 | ||||
-rw-r--r-- | Utilities/cmcurl/CMake/CheckCSourceRuns.cmake | 2 |
3 files changed, 4 insertions, 2 deletions
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}") |