diff options
author | Jean-Christophe Fillion-Robin <jchris.fillionr@kitware.com> | 2018-03-10 09:29:50 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2018-03-12 17:45:50 (GMT) |
commit | 7ad981c8f705ef563b8ca0bf3da98f6902fa56fe (patch) | |
tree | a3465ff8dec0f905cc05eecc0069608c7bfd17fa /Tests/RunCMake/ExternalProject/CMAKE_CACHE_ARGS.cmake | |
parent | c5541cf0da1093635fea7da5a40e64e481b5477e (diff) | |
download | CMake-7ad981c8f705ef563b8ca0bf3da98f6902fa56fe.zip CMake-7ad981c8f705ef563b8ca0bf3da98f6902fa56fe.tar.gz CMake-7ad981c8f705ef563b8ca0bf3da98f6902fa56fe.tar.bz2 |
ExternalProject: Fix cache generation when last args ends with "-NOTFOUND"
Diffstat (limited to 'Tests/RunCMake/ExternalProject/CMAKE_CACHE_ARGS.cmake')
-rw-r--r-- | Tests/RunCMake/ExternalProject/CMAKE_CACHE_ARGS.cmake | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Tests/RunCMake/ExternalProject/CMAKE_CACHE_ARGS.cmake b/Tests/RunCMake/ExternalProject/CMAKE_CACHE_ARGS.cmake index dcb992d..a583e31 100644 --- a/Tests/RunCMake/ExternalProject/CMAKE_CACHE_ARGS.cmake +++ b/Tests/RunCMake/ExternalProject/CMAKE_CACHE_ARGS.cmake @@ -8,4 +8,5 @@ ExternalProject_Add(FOO TMP_DIR "${CMAKE_CURRENT_BINARY_DIR}/tmp" DOWNLOAD_COMMAND "" CMAKE_CACHE_ARGS "-DFOO:STRING=$<1:BAR>$<0:BAD>" - "-DTEST_LIST:STRING=A;B;C") + "-DTEST_LIST:STRING=A;B;C" + "-DTEST_OPTIONAL:FILEPATH=TEST_OPTIONAL-NOTFOUND") |