diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index ab9dd697..b9a492a3 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -71,6 +71,7 @@ else() endif() find_package(PythonInterp REQUIRED) +set(CXXTEST_PYTHON_TESTGEN_EXECUTABLE ${CMAKE_CURRENT_BINARY_DIR}/cxxtest-download-prefix/src/cxxtest-download/bin/cxxtestgen) add_custom_command(OUTPUT ${RUNNER} COMMAND ${CXXTEST_PYTHON_TESTGEN_EXECUTABLE} --runner=ErrorPrinter -o ${RUNNER} ${TESTS} diff --git a/third-party/cxxtest/CMakeLists.txt b/third-party/cxxtest/CMakeLists.txt index 18d27c62..6f50bdf1 100644 --- a/third-party/cxxtest/CMakeLists.txt +++ b/third-party/cxxtest/CMakeLists.txt @@ -13,5 +13,3 @@ ExternalProject_Add(cxxtest-download set(CXXTEST_ROOT_DIR ${CMAKE_CURRENT_BINARY_DIR}/cxxtest-download-prefix/src/cxxtest-download) set(CXXTEST_INCLUDE_DIR ${CXXTEST_ROOT_DIR}) -set(CXXTEST_PYTHON_TESTGEN_EXECUTABLE ${CXXTEST_ROOT_DIR}/bin/cxxtestgen CACHE INTERNAL "" FORCE) -