Skip to content

Commit 2c625b5

Browse files
committed
build: Choose path separator based on host system, not target.
1 parent 1d597d8 commit 2c625b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ include(${CMAKE_CURRENT_SOURCE_DIR}/version.cmake)
215215

216216
# Path separators ( : or ; ) are not handled well in CMake.
217217
# This seems like a reasonable approach.
218-
if(WIN32)
218+
if(CMAKE_HOST_SYSTEM_NAME STREQUAL Windows)
219219
set(CODEGEN_PYTHON_PATH
220220
"${PROJECT_SOURCE_DIR}/specification/scripts;${PROJECT_SOURCE_DIR}/src/scripts;$ENV{PYTHONPATH}"
221221
)

0 commit comments

Comments
 (0)