[appveyor] fix cpack file name
@@ -582,10 +582,6 @@ set(CPACK_PACKAGE_VERSION_MINOR ${HL_VERSION_MINOR})
set(CPACK_PACKAGE_VERSION_PATCH ${HL_VERSION_PATCH})
set(CPACK_GENERATOR ZIP)
-if (DEFINED ENV{APPVEYOR_REPO_COMMIT})
- set(CPACK_PACKAGE_FILE_NAME ${CPACK_PACKAGE_NAME}-$ENV{APPVEYOR_REPO_COMMIT}-${CPACK_SYSTEM_NAME})
-endif()
-
install(
TARGETS
hl
@@ -609,3 +605,7 @@ if (WIN32)
endif()
include(CPack)
+
+if (DEFINED ENV{APPVEYOR_REPO_COMMIT})
+ set(CPACK_PACKAGE_FILE_NAME ${CPACK_PACKAGE_NAME}-$ENV{APPVEYOR_REPO_COMMIT}-${CPACK_SYSTEM_NAME})
+endif()
