]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
Windows compatibility.
authorrnv <rnv@opencascade.com>
Wed, 24 Feb 2016 09:46:12 +0000 (12:46 +0300)
committervsr <vsr@opencascade.com>
Wed, 24 Feb 2016 09:59:56 +0000 (12:59 +0300)
salome_adm/cmake_files/SalomeMacros.cmake

index a67f4d5e0f1791ed09c13d449b7a9543984a1544..cae6cbaba793e9ad3bc88a56d88f69fc126532f6 100644 (file)
@@ -944,10 +944,7 @@ MACRO(SALOME_CONFIGURE_PREPARE)
   FOREACH(_prereq IN LISTS _tmp_prereq)
     IF(${_prereq}_DIR)
       SET(_PREREQ_LIST "${_PREREQ_LIST} ${_prereq}")
-      SET(CURR_DIR ${${_prereq}_DIR})
-      IF(WIN32)
-        STRING(REGEX REPLACE "\\\\" "/" CURR_DIR ${CURR_DIR}) 
-      ENDIF()
+      FILE(TO_CMAKE_PATH ${${_prereq}_DIR} CURR_DIR)
       SET(_PREREQ_DIR_LIST "${_PREREQ_DIR_LIST} \"${CURR_DIR}\"")
       SALOME_APPEND_LIST_OF_LIST(_PREREQ_COMPO_LIST Salome${_prereq}_COMPONENTS)
     ENDIF()