diff options
author | Marc Chevrier <marc.chevrier@gmail.com> | 2020-10-29 16:02:55 (GMT) |
---|---|---|
committer | Marc Chevrier <marc.chevrier@gmail.com> | 2020-11-03 14:12:58 (GMT) |
commit | e452f6e2cf596c34e231b56803f739a878530ad9 (patch) | |
tree | f8f003d0d3e71c1b9288dacf513825c80ad64bb0 /Tests/FindPython/CMakeLists.txt | |
parent | 622ac065d2abeb53de3548b7e4f3d9b5980dfa8d (diff) | |
download | CMake-e452f6e2cf596c34e231b56803f739a878530ad9.zip CMake-e452f6e2cf596c34e231b56803f739a878530ad9.tar.gz CMake-e452f6e2cf596c34e231b56803f739a878530ad9.tar.bz2 |
FindPython: Adds control over artifact names to search
Fixes: #21371
Diffstat (limited to 'Tests/FindPython/CMakeLists.txt')
-rw-r--r-- | Tests/FindPython/CMakeLists.txt | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Tests/FindPython/CMakeLists.txt b/Tests/FindPython/CMakeLists.txt index 44484c3..520ba9e 100644 --- a/Tests/FindPython/CMakeLists.txt +++ b/Tests/FindPython/CMakeLists.txt @@ -451,6 +451,18 @@ if(CMake_TEST_FindPython) --test-command ${CMAKE_CTEST_COMMAND} -V -C $<CONFIGURATION> ) endif() + + if (CMAKE_SYSTEM_NAME STREQUAL "Linux") + add_test(NAME FindPython.UnversionedNames COMMAND + ${CMAKE_CTEST_COMMAND} -C $<CONFIGURATION> + --build-and-test + "${CMake_SOURCE_DIR}/Tests/FindPython/UnversionedNames" + "${CMake_BINARY_DIR}/Tests/FindPython/UnversionedNames" + ${build_generator_args} + --build-project UnversionedNames + --build-options ${build_options} + ) + endif() endif() if(CMake_TEST_FindPython_NumPy) |