mirror of
https://github.com/zeek/zeek.git
synced 2025-10-13 20:18:20 +00:00
Merge with origin/topic/cmake-port.
Needed to readd the broctl/broccoli/binpac submodules manually, as git seemed to get confused by the existing directories.
This commit is contained in:
parent
c1768336c4
commit
610d081c4b
125 changed files with 2304 additions and 7592 deletions
18
cmake/SetPackageFileName.cmake
Normal file
18
cmake/SetPackageFileName.cmake
Normal file
|
@ -0,0 +1,18 @@
|
|||
# Sets CPACK_PACKAGE_FILE name in the following format:
|
||||
#
|
||||
# <project_name>-<version>-<OS/platform>-<arch>
|
||||
#
|
||||
# The version must already be set in the VERSION variable
|
||||
|
||||
set(CPACK_PACKAGE_FILE_NAME "${CMAKE_PROJECT_NAME}-${VERSION}")
|
||||
set(CPACK_PACKAGE_FILE_NAME "${CPACK_PACKAGE_FILE_NAME}-${CMAKE_SYSTEM_NAME}")
|
||||
if (APPLE)
|
||||
# Only Intel-based Macs are supported. CMAKE_SYSTEM_PROCESSOR may
|
||||
# return the confusing 'i386' if running a 32-bit kernel, but chances
|
||||
# are the binary is x86_64 (or more generally 'Intel') compatible.
|
||||
set(arch "Intel")
|
||||
else ()
|
||||
set (arch ${CMAKE_SYSTEM_PROCESSOR})
|
||||
endif ()
|
||||
|
||||
set(CPACK_PACKAGE_FILE_NAME "${CPACK_PACKAGE_FILE_NAME}-${arch}")
|
Loading…
Add table
Add a link
Reference in a new issue