diff options
author | Kyle Edwards <kyle.edwards@kitware.com> | 2021-03-10 21:46:20 (GMT) |
---|---|---|
committer | Kyle Edwards <kyle.edwards@kitware.com> | 2021-03-15 18:41:42 (GMT) |
commit | 0d497e159b5854ed050d9eb8c4e965976a03de11 (patch) | |
tree | ea194808ab962ed15d8329ab527d6e2c5472fc7c /Tests/RunCMake/CMakePresets/RunCMakeTest.cmake | |
parent | 79d03ab5055da1397c525c31d8cb13c30965a911 (diff) | |
download | CMake-0d497e159b5854ed050d9eb8c4e965976a03de11.zip CMake-0d497e159b5854ed050d9eb8c4e965976a03de11.tar.gz CMake-0d497e159b5854ed050d9eb8c4e965976a03de11.tar.bz2 |
CMakePresets.json: Add ${hostSystemName} macro
Diffstat (limited to 'Tests/RunCMake/CMakePresets/RunCMakeTest.cmake')
-rw-r--r-- | Tests/RunCMake/CMakePresets/RunCMakeTest.cmake | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Tests/RunCMake/CMakePresets/RunCMakeTest.cmake b/Tests/RunCMake/CMakePresets/RunCMakeTest.cmake index ee21130..24ac0e9 100644 --- a/Tests/RunCMake/CMakePresets/RunCMakeTest.cmake +++ b/Tests/RunCMake/CMakePresets/RunCMakeTest.cmake @@ -261,6 +261,12 @@ set(CMakePresets_FILE "${RunCMake_SOURCE_DIR}/Debug.json.in") run_cmake_presets(NoDebug) run_cmake_presets(Debug) +# Test ${hostSystemName} macro +set(CMakePresets_FILE "${RunCMake_SOURCE_DIR}/HostSystemName.json.in") +run_cmake_presets(HostSystemName) +set(CMakePresets_FILE "${RunCMake_SOURCE_DIR}/HostSystemNameFuture.json.in") +run_cmake_presets(HostSystemNameFuture) + # Test the example from the documentation file(READ "${RunCMake_SOURCE_DIR}/../../../Help/manual/presets/example.json" _example) string(REPLACE "\"generator\": \"Ninja\"" "\"generator\": \"@RunCMake_GENERATOR@\"" _example "${_example}") |