summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/ExternalProject/CMAKE_CACHE_mix-check.cmake
diff options
context:
space:
mode:
authorAndrey Pokrovskiy <pokroa@amazon.com>2015-04-17 04:42:19 (GMT)
committerBrad King <brad.king@kitware.com>2015-04-21 14:50:29 (GMT)
commit7bd8cfb813e9bd19cebda92b280beb2deaf052d4 (patch)
treead76020e79e4d286a99a0c19d74a8d4cb7b32837 /Tests/RunCMake/ExternalProject/CMAKE_CACHE_mix-check.cmake
parent1cf43dcf7c63a61e6254d102314b121623d2086d (diff)
downloadCMake-7bd8cfb813e9bd19cebda92b280beb2deaf052d4.zip
CMake-7bd8cfb813e9bd19cebda92b280beb2deaf052d4.tar.gz
CMake-7bd8cfb813e9bd19cebda92b280beb2deaf052d4.tar.bz2
ExternalProject: Allow generator expressions in initial cache options
Use file(GENERATE) to write the initial cache file so that we can evaluate generator expressions. Use a per-config initial cache file name in case the content varies by configuration.
Diffstat (limited to 'Tests/RunCMake/ExternalProject/CMAKE_CACHE_mix-check.cmake')
-rw-r--r--Tests/RunCMake/ExternalProject/CMAKE_CACHE_mix-check.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/Tests/RunCMake/ExternalProject/CMAKE_CACHE_mix-check.cmake b/Tests/RunCMake/ExternalProject/CMAKE_CACHE_mix-check.cmake
index 2a07f27..04d49b9 100644
--- a/Tests/RunCMake/ExternalProject/CMAKE_CACHE_mix-check.cmake
+++ b/Tests/RunCMake/ExternalProject/CMAKE_CACHE_mix-check.cmake
@@ -1,4 +1,4 @@
-set(_cache_file "${RunCMake_TEST_BINARY_DIR}/tmp/FOO-cache.cmake")
+set(_cache_file "${RunCMake_TEST_BINARY_DIR}/tmp/FOO-cache-Debug.cmake")
if(NOT EXISTS "${_cache_file}")
set(RunCMake_TEST_FAILED "Initial cache not created")