diff --git a/CMakeLists.txt b/CMakeLists.txt index e698853..e6f4958 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -185,14 +185,16 @@ if (WIN32) install(FILES ${DLL_FILES} DESTINATION bin) endif (WIN32) -set(CPACK_INSTALL_CMAKE_PROJECTS ${PROJECT_BINARY_DIR} breakhack Release package) -set(CPACK_PACKAGE_NAME "BreakHack") -set(CPACK_PACKAGE_VENDOR "OliveShark") -set(CPACK_PACKAGE_DIRECTORY "package") -set(CPACK_PACKAGE_VERSION_MAJOR "0") -set(CPACK_PACKAGE_VERSION_MINOR "1") -set(CPACK_PACKAGE_VERSION_PATCH "1") -set(CPACK_PACKAGE_FILE_NAME "${CPACK_PACKAGE_NAME}-${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}.${CPACK_PACKAGE_VERSION_PATCH}") -set(CPACK_PACKAGE_CHECKSUM "MD5") -set(CPACK_PACKAGE_EXECUTABLES breakhack) -include(cpack) \ No newline at end of file +if (WIN32) + set(CPACK_INSTALL_CMAKE_PROJECTS ${PROJECT_BINARY_DIR} breakhack Release package) + set(CPACK_PACKAGE_NAME "BreakHack") + set(CPACK_PACKAGE_VENDOR "OliveShark") + set(CPACK_PACKAGE_DIRECTORY "package") + set(CPACK_PACKAGE_VERSION_MAJOR "0") + set(CPACK_PACKAGE_VERSION_MINOR "1") + set(CPACK_PACKAGE_VERSION_PATCH "1") + set(CPACK_PACKAGE_FILE_NAME "${CPACK_PACKAGE_NAME}-${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}.${CPACK_PACKAGE_VERSION_PATCH}") + set(CPACK_PACKAGE_CHECKSUM "MD5") + set(CPACK_PACKAGE_EXECUTABLES breakhack) + include(cpack) +endif (WIN32) \ No newline at end of file