Browse Source

Differentiate artifacts generated from Windows host system.
We now have MinGW DirectX 11 build from both AppVeyor and Travis CI, so use the artifact's extension to differentiate them.
[ci package]

Yao Wei Tjong 姚伟忠 7 years ago
parent
commit
b6039016b6
1 changed files with 3 additions and 1 deletions
  1. 3 1
      CMakeLists.txt

+ 3 - 1
CMakeLists.txt

@@ -104,7 +104,9 @@ elseif (WIN32)
     if (MINGW)
     if (MINGW)
         set (CPACK_SYSTEM_NAME MinGW)   # MinGW implies Windows platform
         set (CPACK_SYSTEM_NAME MinGW)   # MinGW implies Windows platform
     endif ()
     endif ()
-    set (CPACK_GENERATOR ZIP)
+    if (CMAKE_HOST_WIN32)
+        set (CPACK_GENERATOR ZIP)       # Differentiate artifacts generated from Windows host system
+    endif ()
 elseif (WEB)
 elseif (WEB)
     set (CPACK_SYSTEM_NAME Web)
     set (CPACK_SYSTEM_NAME Web)
 elseif (CPACK_SYSTEM_NAME STREQUAL Linux)
 elseif (CPACK_SYSTEM_NAME STREQUAL Linux)