mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-23 11:20:02 +00:00
Include CPack only when explictly packaging (#5817)
Including CPack without the additional packaging information creates unused project files, and can potentially cause issues for projects including Flatbuffers that also use CPack.
This commit is contained in:
@@ -619,9 +619,10 @@ if(UNIX)
|
|||||||
# Use of CPack only supported on Linux systems.
|
# Use of CPack only supported on Linux systems.
|
||||||
if(FLATBUFFERS_PACKAGE_DEBIAN)
|
if(FLATBUFFERS_PACKAGE_DEBIAN)
|
||||||
include(CMake/PackageDebian.cmake)
|
include(CMake/PackageDebian.cmake)
|
||||||
|
include(CPack)
|
||||||
endif()
|
endif()
|
||||||
if (FLATBUFFERS_PACKAGE_REDHAT)
|
if (FLATBUFFERS_PACKAGE_REDHAT)
|
||||||
include(CMake/PackageRedhat.cmake)
|
include(CMake/PackageRedhat.cmake)
|
||||||
|
include(CPack)
|
||||||
endif()
|
endif()
|
||||||
include(CPack)
|
|
||||||
endif()
|
endif()
|
||||||
|
|||||||
Reference in New Issue
Block a user