Skip to content

Commit 23b1d27

Browse files
committed
build: Choose path separator based on host system, not target.
1 parent 6e48ba0 commit 23b1d27

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
@@ -225,7 +225,7 @@ include(${CMAKE_CURRENT_SOURCE_DIR}/version.cmake)
225225

226226
# Path separators ( : or ; ) are not handled well in CMake.
227227
# This seems like a reasonable approach.
228-
if(WIN32)
228+
if(CMAKE_HOST_SYSTEM_NAME STREQUAL Windows)
229229
set(CODEGEN_PYTHON_PATH
230230
"${PROJECT_SOURCE_DIR}/specification/scripts;${PROJECT_SOURCE_DIR}/src/scripts;$ENV{PYTHONPATH}"
231231
)

0 commit comments

Comments
 (0)