diff options
author | Robert Maynard <rmaynard@nvidia.com> | 2021-02-22 16:52:14 (GMT) |
---|---|---|
committer | Robert Maynard <rmaynard@nvidia.com> | 2021-03-04 15:50:24 (GMT) |
commit | 38140713ad24576f1c4e6253a1de91ff217dd475 (patch) | |
tree | 5a46fbfe232b0fb0891909ed3b91f677f7b3a59a /Tests/RunCMake/CMP0041 | |
parent | a88efbc9cfad2d69e1f1e8875383c4e9c1f39849 (diff) | |
download | CMake-38140713ad24576f1c4e6253a1de91ff217dd475.zip CMake-38140713ad24576f1c4e6253a1de91ff217dd475.tar.gz CMake-38140713ad24576f1c4e6253a1de91ff217dd475.tar.bz2 |
cmake: add support for --install-prefix command argument
Fixes: #21781
Diffstat (limited to 'Tests/RunCMake/CMP0041')
-rw-r--r-- | Tests/RunCMake/CMP0041/RunCMakeTest.cmake | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Tests/RunCMake/CMP0041/RunCMakeTest.cmake b/Tests/RunCMake/CMP0041/RunCMakeTest.cmake index e7f27a1..f47bb2e 100644 --- a/Tests/RunCMake/CMP0041/RunCMakeTest.cmake +++ b/Tests/RunCMake/CMP0041/RunCMakeTest.cmake @@ -6,6 +6,10 @@ set(RunCMake_TEST_OPTIONS "-DCMAKE_INSTALL_PREFIX=${RunCMake_BINARY_DIR}/NotDefa run_cmake(CMP0041-OLD) run_cmake(CMP0041-NEW) run_cmake(CMP0041-WARN) + +# Protect tests from running inside the default install prefix. +set(RunCMake_TEST_OPTIONS "--install-prefix ${RunCMake_BINARY_DIR}/NotDefaultPrefix") + run_cmake(CMP0041-tid-OLD) run_cmake(CMP0041-tid-NEW) run_cmake(CMP0041-tid-WARN) |