File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed
Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -48,10 +48,13 @@ if(CMAKE_BUILD_TYPE STREQUAL "Release")
4848 VERBATIM
4949 )
5050
51- add_custom_target (package_slick_queue ALL
52- COMMAND ${CMAKE_COMMAND} -E tar "cfv" "${CMAKE_BINARY_DIR} /dist/slick_queue_${BUILD_VERSION} .zip" --format=zip "${CMAKE_CURRENT_SOURCE_DIR} /include"
53- WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR} "
54- COMMENT "Creating zip archive"
55- )
51+ if (PROJECT_IS_TOP_LEVEL)
52+ add_custom_target (package_slick_queue ALL
53+ COMMAND ${CMAKE_COMMAND} -E tar "cfv" "${CMAKE_BINARY_DIR} /dist/slick_queue_${BUILD_VERSION} .zip" --format=zip "${CMAKE_CURRENT_SOURCE_DIR} /include"
54+ WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR} "
55+ COMMENT "Creating zip archive"
56+ )
57+ add_dependencies (package_slick_queue dist_slick_queue)
58+ endif ()
5659endif ()
5760
You can’t perform that action at this time.
0 commit comments