Skip to content

Commit

Permalink
test: add more back slash to PYTHONPATH separator on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
jorisv committed Nov 27, 2023
1 parent 02719f3 commit ce4d7c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ function(COMPUTE_PYTHONPATH result)
if(WIN32)
# ensure that severals paths stay together as ENV variable PYTHONPATH when
# passed to python test via PROPERTIES
string(REPLACE ";" "\;" PYTHONPATH_STR "${PYTHONPATH}")
string(REPLACE ";" "\\\;" PYTHONPATH_STR "${PYTHONPATH}")
else(WIN32)
string(REPLACE ";" "${PATHSEP}" PYTHONPATH_STR "${PYTHONPATH}")
endif(WIN32)
Expand Down

0 comments on commit ce4d7c6

Please sign in to comment.