File tree Expand file tree Collapse file tree 1 file changed +13
-5
lines changed
Expand file tree Collapse file tree 1 file changed +13
-5
lines changed Original file line number Diff line number Diff line change @@ -93,11 +93,19 @@ if(CMAKE_BUILD_TYPE STREQUAL "Release")
9393 )
9494
9595 if (PROJECT_IS_TOP_LEVEL)
96- add_custom_target (package_slick_socket ALL
97- COMMAND ${CMAKE_COMMAND} -E tar "cfv" "${CMAKE_BINARY_DIR} /dist/slick_socket_${BUILD_VERSION} .zip" --format=zip "include" "lib"
98- WORKING_DIRECTORY "${CMAKE_BINARY_DIR} /dist"
99- COMMENT "Creating zip archive"
100- )
96+ if (WIN32 )
97+ add_custom_target (package_slick_socket ALL
98+ COMMAND ${CMAKE_COMMAND} -E tar "cfv" "${CMAKE_BINARY_DIR} /dist/slick_socket_${BUILD_VERSION} .zip" --format=zip "include" "lib"
99+ WORKING_DIRECTORY "${CMAKE_BINARY_DIR} /dist"
100+ COMMENT "Creating zip archive"
101+ )
102+ else ()
103+ add_custom_target (package_slick_socket ALL
104+ COMMAND ${CMAKE_COMMAND} -E tar "cfv" "${CMAKE_BINARY_DIR} /dist/slick_socket_${BUILD_VERSION} .zip" --format=zip "include"
105+ WORKING_DIRECTORY "${CMAKE_BINARY_DIR} /dist"
106+ COMMENT "Creating zip archive"
107+ )
108+ endif ()
101109
102110 add_dependencies (package_slick_socket dist_slick_socket)
103111 endif ()
You can’t perform that action at this time.
0 commit comments