diff options
author | Brad King <brad.king@kitware.com> | 2009-07-14 12:38:24 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2009-07-14 12:38:24 (GMT) |
commit | b44413f9f8e92280325d105d3095f5bb4a3f090f (patch) | |
tree | 9d88a1cf14fbdd7ba23f1df4df5880971d75b606 /Tests/ExportImport/InitialCache.cmake.in | |
parent | 4d2dd55b9c5cb6c81f5da8336aef2db50e065b0a (diff) | |
download | CMake-b44413f9f8e92280325d105d3095f5bb4a3f090f.zip CMake-b44413f9f8e92280325d105d3095f5bb4a3f090f.tar.gz CMake-b44413f9f8e92280325d105d3095f5bb4a3f090f.tar.bz2 |
COMP: Shorten ExportImport test command lines
The ExportImport test drives its Export and Import projects using the
same compiler and flags. This converts the ctest --build-and-test
command lines to use an initial cache file instead of passing all
settings on the command line.
We need a shorter command line to pass through VS 6 on Win98.
This approach reduces duplicate code anyway.
Diffstat (limited to 'Tests/ExportImport/InitialCache.cmake.in')
-rw-r--r-- | Tests/ExportImport/InitialCache.cmake.in | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/Tests/ExportImport/InitialCache.cmake.in b/Tests/ExportImport/InitialCache.cmake.in new file mode 100644 index 0000000..f920b1f --- /dev/null +++ b/Tests/ExportImport/InitialCache.cmake.in @@ -0,0 +1,14 @@ +SET(CMAKE_C_COMPILER "@CMAKE_C_COMPILER@" CACHE STRING "C Compiler") +SET(CMAKE_C_FLAGS "@CMAKE_C_FLAGS@" CACHE STRING "C Flags") +SET(CMAKE_C_FLAGS_DEBUG "@CMAKE_C_FLAGS_DEBUG@" CACHE STRING "C Flags") +SET(CMAKE_C_FLAGS_RELEASE "@CMAKE_C_FLAGS_RELEASE@" CACHE STRING "C Flags") +SET(CMAKE_C_FLAGS_MINSIZEREL "@CMAKE_C_FLAGS_MINSIZEREL@" CACHE STRING "C Flags") +SET(CMAKE_C_FLAGS_RELWITHDEBINFO "@CMAKE_C_FLAGS_RELWITHDEBINFO@" CACHE STRING "C Flags") +SET(CMAKE_CXX_COMPILER "@CMAKE_CXX_COMPILER@" CACHE STRING "C++ Compiler") +SET(CMAKE_CXX_FLAGS "@CMAKE_CXX_FLAGS@" CACHE STRING "C++ Flags") +SET(CMAKE_CXX_FLAGS_DEBUG "@CMAKE_CXX_FLAGS_DEBUG@" CACHE STRING "C++ Flags") +SET(CMAKE_CXX_FLAGS_RELEASE "@CMAKE_CXX_FLAGS_RELEASE@" CACHE STRING "C++ Flags") +SET(CMAKE_CXX_FLAGS_MINSIZEREL "@CMAKE_CXX_FLAGS_MINSIZEREL@" CACHE STRING "C++ Flags") +SET(CMAKE_CXX_FLAGS_RELWITHDEBINFO "@CMAKE_CXX_FLAGS_RELWITHDEBINFO@" CACHE STRING "C++ Flags") +SET(CMAKE_INSTALL_PREFIX "@ExportImport_BINARY_DIR@/Root" CACHE STRING "Installation Prefix") +SET(CMAKE_SKIP_RPATH ON CACHE BOOL "No RPATH") |