Corrects test binary paths in the CMake build script.
This commit is contained in:
parent
1097b54dcf
commit
fbc266f0a4
|
@ -184,7 +184,7 @@ function(py_test name)
|
||||||
# only at ctest runtime (by calling ctest -c <Configuration>), so
|
# only at ctest runtime (by calling ctest -c <Configuration>), so
|
||||||
# we have to escape $ to delay variable substitution here.
|
# we have to escape $ to delay variable substitution here.
|
||||||
add_test(${name}
|
add_test(${name}
|
||||||
${PYTHON_EXECUTABLE} ${CMAKE_SOURCE_DIR}/test/${name}.py
|
${PYTHON_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/test/${name}.py
|
||||||
--build_dir=${CMAKE_BINARY_DIR}/\${CTEST_CONFIGURATION_TYPE})
|
--build_dir=${CMAKE_CURRENT_BINARY_DIR}/\${CTEST_CONFIGURATION_TYPE})
|
||||||
endif()
|
endif()
|
||||||
endfunction()
|
endfunction()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user