diff options
author | Brad King <brad.king@kitware.com> | 2018-11-02 13:36:31 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2019-01-08 16:22:11 (GMT) |
commit | 00530d74d5d07a320c998d6caccc00cf4e59b06d (patch) | |
tree | 5d5b1a9773bce0c4e6365b3c39384690f01c1354 /Tests/RunCMake | |
parent | f5da1bb34954b1a9e78f07133f4aa3ce332a329f (diff) | |
download | CMake-00530d74d5d07a320c998d6caccc00cf4e59b06d.zip CMake-00530d74d5d07a320c998d6caccc00cf4e59b06d.tar.gz CMake-00530d74d5d07a320c998d6caccc00cf4e59b06d.tar.bz2 |
Tests: Pass python interpreter into RunCMake.CTestCommandLine
This will be useful for adding python-based result checks.
Diffstat (limited to 'Tests/RunCMake')
-rw-r--r-- | Tests/RunCMake/CMakeLists.txt | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Tests/RunCMake/CMakeLists.txt b/Tests/RunCMake/CMakeLists.txt index 67fd65a..e222376 100644 --- a/Tests/RunCMake/CMakeLists.txt +++ b/Tests/RunCMake/CMakeLists.txt @@ -385,8 +385,9 @@ add_RunCMake_test(CPackConfig) add_RunCMake_test(CPackInstallProperties) add_RunCMake_test(ExternalProject) add_RunCMake_test(FetchContent) +set(CTestCommandLine_ARGS -DPYTHON_EXECUTABLE=${PYTHON_EXECUTABLE}) if(NOT CMake_TEST_EXTERNAL_CMAKE) - set(CTestCommandLine_ARGS -DTEST_AFFINITY=$<TARGET_FILE:testAffinity>) + list(APPEND CTestCommandLine_ARGS -DTEST_AFFINITY=$<TARGET_FILE:testAffinity>) endif() add_executable(print_stdin print_stdin.c) add_RunCMake_test(CTestCommandLine -DTEST_PRINT_STDIN=$<TARGET_FILE:print_stdin>) |