summaryrefslogtreecommitdiffstats
path: root/Tests/UseSWIG/LegacyPython/CMakeLists.txt
diff options
context:
space:
mode:
authorMarc Chevrier <marc.chevrier@sap.com>2018-04-05 10:09:53 (GMT)
committerMarc Chevrier <marc.chevrier@sap.com>2018-04-05 10:09:53 (GMT)
commit38dcdd76413c012a569eccb67c195f1d6840e2b8 (patch)
tree71a140462721242f9ff83ea0cd62777e3c101a99 /Tests/UseSWIG/LegacyPython/CMakeLists.txt
parent3201e4c156fcf79a7c29a73430e72b1bcd43cedc (diff)
downloadCMake-38dcdd76413c012a569eccb67c195f1d6840e2b8.zip
CMake-38dcdd76413c012a569eccb67c195f1d6840e2b8.tar.gz
CMake-38dcdd76413c012a569eccb67c195f1d6840e2b8.tar.bz2
UseSWIG: Ensure tests are usable in multi-config mode.
Fixes: #17875
Diffstat (limited to 'Tests/UseSWIG/LegacyPython/CMakeLists.txt')
-rw-r--r--Tests/UseSWIG/LegacyPython/CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/Tests/UseSWIG/LegacyPython/CMakeLists.txt b/Tests/UseSWIG/LegacyPython/CMakeLists.txt
index 11a0d28..03facb1 100644
--- a/Tests/UseSWIG/LegacyPython/CMakeLists.txt
+++ b/Tests/UseSWIG/LegacyPython/CMakeLists.txt
@@ -9,5 +9,5 @@ set(language "python")
include (../LegacyConfiguration.cmake)
add_test (NAME LegacyPython
- COMMAND "${CMAKE_COMMAND}" -E env "PYTHONPATH=$<TARGET_FILE_DIR:${SWIG_MODULE_example_REAL_NAME}>"
+ COMMAND "${CMAKE_COMMAND}" -E env "PYTHONPATH=${CMAKE_CURRENT_BINARY_DIR}${PS}$<TARGET_FILE_DIR:${SWIG_MODULE_example_REAL_NAME}>"
"${PYTHON_EXECUTABLE}" "${CMAKE_CURRENT_SOURCE_DIR}/../runme.py")