Forráskód Böngészése

cpack wix: fix path error on cygwin

Under Cygwin, file(TO_CMAKE_PATH...) outputs invalid paths when given
a Windows path as input (the colon after the drive letter gets replaced
by a semicolon).

As a workaround, just use a string replace to change the slashes instead.
Stephen Sorley 8 éve
szülő
commit
e258fe0396
1 módosított fájl, 1 hozzáadás és 1 törlés
  1. 1 1
      Modules/CPackWIX.cmake

+ 1 - 1
Modules/CPackWIX.cmake

@@ -289,7 +289,7 @@
 #
 
 if(NOT CPACK_WIX_ROOT)
-  file(TO_CMAKE_PATH "$ENV{WIX}" CPACK_WIX_ROOT)
+  string(REPLACE "\\" "/" CPACK_WIX_ROOT "$ENV{WIX}")
 endif()
 
 find_program(CPACK_WIX_CANDLE_EXECUTABLE candle