Skip to content
Snippets Groups Projects
Commit f72a2795 authored by Ben Boeckel's avatar Ben Boeckel Committed by Kitware Robot
Browse files

Merge topic 'fix-wrapping-example-path' into release


41ad5483 Examples/Wrapping: fix PATH construction

Acked-by: default avatarKitware Robot <kwrobot@kitware.com>
Acked-by: default avatarT.J. Corona <tj.corona@kitware.com>
Merge-request: !6744
parents 76bc1074 41ad5483
No related branches found
No related tags found
No related merge requests found
......@@ -7,8 +7,10 @@ if (TARGET VTK::vtkpython)
PROPERTY
ENVIRONMENT "PYTHONPATH=${CMAKE_BINARY_DIR}/${python_destination}")
if (WIN32)
set(test_path "$ENV{PATH};${CMAKE_BINARY_DIR}/${CMAKE_INSTALL_BINDIR}")
string(REPLACE ";" "\;" test_path "${test_path}")
set_property(TEST "import_wrappable" APPEND
PROPERTY
ENVIRONMENT "PATH=$ENV{PATH}\;${CMAKE_BINARY_DIR}/${CMAKE_INSTALL_BINDIR}")
ENVIRONMENT "PATH=${test_path}")
endif ()
endif ()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment