mirror of
https://github.com/gelldur/EventBus.git
synced 2025-01-14 01:07:59 +08:00
Fix enable_cpack() call
We were missing argument (maybe I resolved conflict badly) We don't need option this could be deduced from CPACK_GENERATOR variable [MINOR]
This commit is contained in:
parent
3f39010983
commit
6c9ba0640c
@ -1,5 +1,8 @@
|
||||
cmake_minimum_required(VERSION 3.8 FATAL_ERROR)
|
||||
|
||||
# Use ';' to specify multiple e.g. ZIP;TGZ;DEB
|
||||
set(CPACK_GENERATOR "" CACHE STRING "Set packages CPack should build e.g. ZIP;TGZ;DEB")
|
||||
|
||||
# BUILD_SHARED_LIBS can controll build type!
|
||||
project(EventBus
|
||||
VERSION 2.5.0
|
||||
@ -111,7 +114,7 @@ install(EXPORT "${TARGETS_EXPORT_NAME}"
|
||||
)
|
||||
|
||||
# Cpack configuration
|
||||
if(ENABLE_CPACK)
|
||||
if(NOT CPACK_GENERATOR STREQUAL "")
|
||||
include("cmake/EventBus_CPack.cmake")
|
||||
enable_cpack()
|
||||
enable_cpack(${CPACK_GENERATOR})
|
||||
endif()
|
||||
|
Loading…
x
Reference in New Issue
Block a user