CMake: Use 7Z package generator under Windows, fixes #11

This commit is contained in:
Axel Isouard 2016-11-27 10:17:06 +01:00
parent 461570efab
commit b8796b9359
No known key found for this signature in database
GPG key ID: 4E64BB3EAAF31C29

View file

@ -9,11 +9,11 @@ set(CPACK_PACKAGE_VERSION_PATCH "${LIBWEBRTC_PATCH_VERSION}")
set(CPACK_INSTALL_CMAKE_PROJECTS
"${CPACK_INSTALL_CMAKE_PROJECTS};${CMAKE_BINARY_DIR}/libwebrtc;libwebrtc;ALL;/")
if (WIN)
set(CPACK_GENERATOR "ZIP")
else (WIN)
if (WIN32)
set(CPACK_GENERATOR "7Z")
else (WIN32)
set(CPACK_GENERATOR "TGZ")
endif (WIN)
endif (WIN32)
if (CMAKE_SYSTEM_NAME MATCHES "Linux")
set(LIBWEBRTC_PLATFORM "linux")