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.
This commit is contained in:
Stephen Sorley
2017-10-09 11:28:25 -04:00
parent cb8f26f199
commit e258fe0396

View File

@@ -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