Skip to content
This repository was archived by the owner on Jul 8, 2022. It is now read-only.

Commit 5a9d0bf

Browse files
committed
CXX Tests: Check that we could find python 2
1 parent 85ced99 commit 5a9d0bf

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

cpp_test_suite/cxxtest/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
find_package (Threads REQUIRED)
22
find_program(PYTHON_INTERPRETER NAMES python2 python)
33

4+
if(NOT PYTHON_INTERPRETER)
5+
message(SEND_ERROR "Could not find python 2.")
6+
endif()
7+
48
macro(CXX_GENERATE_TEST name)
59
message("Generate ${name}.cpp")
610
execute_process(COMMAND "${PYTHON_INTERPRETER}" cxxtestgen.py

0 commit comments

Comments
 (0)