cmake_modules/CMakePascalInformation.cmake
changeset 13919 085ed3ff0637
parent 9950 2759212a27de
--- a/cmake_modules/CMakePascalInformation.cmake	Mon Oct 15 09:35:54 2018 -0400
+++ b/cmake_modules/CMakePascalInformation.cmake	Mon Oct 15 19:43:30 2018 +0300
@@ -149,7 +149,7 @@
 # create a Pascal shared library
 if(NOT CMAKE_Pascal_CREATE_SHARED_LIBRARY)
     if(WIN32)
-        set(CMAKE_Pascal_CREATE_SHARED_LIBRARY "${EXECUTABLE_OUTPUT_PATH}/ppas.bat")
+        file(TO_NATIVE_PATH "${EXECUTABLE_OUTPUT_PATH}/ppas.bat" CMAKE_Pascal_CREATE_SHARED_LIBRARY)
     else(WIN32)
         set(CMAKE_Pascal_CREATE_SHARED_LIBRARY "${EXECUTABLE_OUTPUT_PATH}/ppas.sh")
     endif(WIN32)
@@ -198,7 +198,7 @@
 # link Pascal objects in a single executable
 if(NOT CMAKE_Pascal_LINK_EXECUTABLE)
     if(WIN32)
-        set(CMAKE_Pascal_LINK_EXECUTABLE "${EXECUTABLE_OUTPUT_PATH}/ppas.bat")
+        file(TO_NATIVE_PATH "${EXECUTABLE_OUTPUT_PATH}/ppas.bat" CMAKE_Pascal_LINK_EXECUTABLE)
     else(WIN32)
         set(CMAKE_Pascal_LINK_EXECUTABLE "${EXECUTABLE_OUTPUT_PATH}/ppas.sh")
     endif(WIN32)