]> SALOME platform Git repositories - modules/adao.git/commitdiff
Salome HOME
Minor improvements for Windows
authorJean-Philippe ARGAUD <jean-philippe.argaud@edf.fr>
Wed, 29 Apr 2020 05:15:45 +0000 (07:15 +0200)
committerJean-Philippe ARGAUD <jean-philippe.argaud@edf.fr>
Wed, 29 Apr 2020 05:15:45 +0000 (07:15 +0200)
bin/CMakeLists.txt

index d11c576b553cf95718a77d56b9d65a89b5619a09..6b905a93c77e5ff23ee01544aee45aedc747b154 100644 (file)
@@ -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)" )