FindPython: add capability to select python version for the tests

This commit is contained in:
Marc Chevrier
2023-06-13 17:46:32 +02:00
parent 883cbf4171
commit 711d1da125
23 changed files with 526 additions and 395 deletions

View File

@@ -62,7 +62,7 @@ set_tests_properties(FindPython.CustomFailureMessage.Multiple PROPERTIES
PASS_REGULAR_EXPRESSION "Reason given by package:.+Interpreter: Cannot run the interpreter.+Development: Cannot find the library")
if (CMake_TEST_FindPython_NumPy)
if (CMake_TEST_FindPython3_NumPy)
add_test(NAME FindPython.CustomFailureMessage.NumPy COMMAND
${CMAKE_CTEST_COMMAND} -C $<CONFIGURATION>
--build-and-test