diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2006-01-13 16:44:39 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2006-01-13 16:44:39 (GMT) |
commit | 262295615925c082ec3f98c3fc1f6c259d09ee6f (patch) | |
tree | 824df934da7880461ba13920cb3b0cbcbd036573 /Utilities/cmxmlrpc | |
parent | 96f948adf5ff0299bd1fa2f069da0f375596614d (diff) | |
download | CMake-262295615925c082ec3f98c3fc1f6c259d09ee6f.zip CMake-262295615925c082ec3f98c3fc1f6c259d09ee6f.tar.gz CMake-262295615925c082ec3f98c3fc1f6c259d09ee6f.tar.bz2 |
ENH: fix for CMakeTmp move broken stuff
Diffstat (limited to 'Utilities/cmxmlrpc')
-rw-r--r-- | Utilities/cmxmlrpc/CMake/TryCompileFromSource.cmake | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Utilities/cmxmlrpc/CMake/TryCompileFromSource.cmake b/Utilities/cmxmlrpc/CMake/TryCompileFromSource.cmake index 44dc8e4..606520c 100644 --- a/Utilities/cmxmlrpc/CMake/TryCompileFromSource.cmake +++ b/Utilities/cmxmlrpc/CMake/TryCompileFromSource.cmake @@ -15,9 +15,10 @@ MACRO(TRY_COMPILE_FROM_SOURCE SOURCE VAR) ENDFOREACH(inc) SET(src "${src}\nint main() { ${SOURCE} ; return 0; }") - FILE(WRITE "${CMAKE_BINARY_DIR}/CMakeFiles/CMakeTmp/src.c" + FILE(WRITE "${CMAKE_BINARY_DIR}/CMakeFiles/CMakeTmp/src2.c" "${src}") - + EXEC_PROGRAM("${CMAKE_COMMAND}" "${CMAKE_BINARY_DIR}/CMakeFiles/CMakeTmp" + ARGS -E copy src2.c src.c) MESSAGE(STATUS "Performing Test ${VAR}") TRY_COMPILE(${VAR} ${CMAKE_BINARY_DIR} |