fix path to ppas.bat to avoid confusing nmake
authoralfadur
Mon, 15 Oct 2018 19:43:30 +0300
changeset 13940 085ed3ff0637
parent 13939 90a0ec20b6d8
child 13941 7173b702e8db
fix path to ppas.bat to avoid confusing nmake
cmake_modules/CMakePascalInformation.cmake
--- 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)