Skip to content

Commit 8d8625a

Browse files
committed
Quoting Python3_EXECUTABLE in CTEST_CUSTOM_POST_TEST to make sure it works for paths with spaces (e.g. on Windows)
1 parent a466518 commit 8d8625a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

CTestCustom.cmake.in

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,9 @@ set(CTEST_CUSTOM_WARNING_EXCEPTION
4747
)
4848

4949
# Only run post test if suitable python interpreter was found
50-
set(Python3_EXECUTABLE @Python3_EXECUTABLE@)
50+
set(Python3_EXECUTABLE "@Python3_EXECUTABLE@")
5151
set(LAPACK_TESTING_USE_PYTHON @LAPACK_TESTING_USE_PYTHON@)
5252
if(Python3_EXECUTABLE AND LAPACK_TESTING_USE_PYTHON)
53-
set(CTEST_CUSTOM_POST_TEST "${Python3_EXECUTABLE} ./lapack_testing.py -s -d TESTING")
53+
set(CTEST_CUSTOM_POST_TEST "\"${Python3_EXECUTABLE}\" ./lapack_testing.py -s -d TESTING")
5454
endif()
5555

0 commit comments

Comments
 (0)