CPack: Do not use CPACK_SET_DESTDIR on Windows

This commit is contained in:
Vincent van Ravesteijn 2013-04-25 21:18:41 +02:00
parent 925c35f22e
commit 1ede4a51d3

View File

@ -32,9 +32,11 @@ FILE(STRINGS "${TOP_CMAKE_PATH}/LyX_summary.txt" CPACK_PACKAGE_DESCRIPTION_SUMMA
set(CPACK_PACKAGE_INSTALL_DIRECTORY "CMake ${LYX_INSTALL_SUFFIX}")
#
# needed by rpm
set(CPACK_SET_DESTDIR "ON")
if (NOT WIN32)
# needed by rpm
set(CPACK_SET_DESTDIR "ON")
endif()
FILE(READ "${TOP_CMAKE_PATH}/LyX_license.txt" CPACK_RPM_PACKAGE_LICENSE)
set(CPACK_RPM_PACKAGE_GROUP "Applications/Publishing")
set(CPACK_RPM_PACKAGE_VENDOR "The LyX team")