From 9901af6e67c523a28725b25996942a33c1738cd6 Mon Sep 17 00:00:00 2001 From: Jean-Philippe ARGAUD Date: Wed, 29 Apr 2020 07:15:45 +0200 Subject: [PATCH] Minor improvements for Windows --- bin/CMakeLists.txt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/bin/CMakeLists.txt b/bin/CMakeLists.txt index d11c576..6b905a9 100644 --- a/bin/CMakeLists.txt +++ b/bin/CMakeLists.txt @@ -27,9 +27,14 @@ install( PERMISSIONS OWNER_EXECUTE OWNER_WRITE OWNER_READ DESTINATION ${ADAO_BIN} ) +IF(WIN32) + SET(SEP "\\;") +ELSE(WIN32) + SET(SEP ":") +ENDIF(WIN32) INSTALL( CODE "MACRO(GENERATE_EFICAS_CATA_FOR_ADAO PY_EXE_CATA ADAO_CATA_GEN_FILE OUTPUT_DIR CATA_ADD_PYTHONPATH) -set(ENV{PYTHONPATH} \${CATA_ADD_PYTHONPATH}:\$ENV{PYTHONPATH}) +set(ENV{PYTHONPATH} \${CATA_ADD_PYTHONPATH}${SEP}\$ENV{PYTHONPATH}) EXECUTE_PROCESS(COMMAND \${PY_EXE_CATA} \${ADAO_CATA_GEN_FILE} \${OUTPUT_DIR} ADAO_Cata_V0.py) ENDMACRO(GENERATE_EFICAS_CATA_FOR_ADAO)" ) -- 2.39.2