Skip to content

Commit

Permalink
Update packaging naming scheme
Browse files Browse the repository at this point in the history
  • Loading branch information
kmilos authored and gmesm committed Feb 8, 2025
1 parent 3119408 commit e0e09f9
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions cmake/packaging.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -12,20 +12,20 @@ else()
set(CPACK_GENERATOR TGZ) # MinGW/Cygwin/Linux/macOS etc use .tar.gz
endif()

set (BARCH ${CMAKE_HOST_SYSTEM_PROCESSOR}) # Target architecture
set (BARCH ${CMAKE_SYSTEM_PROCESSOR}) # Target architecture
if ( CMAKE_SIZEOF_VOID_P EQUAL 4 )
# 32-bit build, force architecture
set (BARCH "i686")
endif()

set (LT "") # Library Type
if ( NOT BUILD_SHARED_LIBS )
set (LT Static)
set (LT -Static)
endif()

set (BT "") # Build Type
if ( NOT ${CMAKE_BUILD_TYPE} STREQUAL Release )
set (BT ${CMAKE_BUILD_TYPE})
set (BT -${CMAKE_BUILD_TYPE})
endif()

if ( MINGW OR MSYS )
Expand All @@ -52,13 +52,13 @@ endif()
set (CC "") # Compiler
if ( NOT APPLE AND NOT CMAKE_SYSTEM_NAME STREQUAL "FreeBSD" )
if (${CMAKE_CXX_COMPILER_ID} MATCHES "Clang")
set (CC Clang)
set (CC -Clang)
endif()
endif()

set (WR "") # WebReady
if ( EXIV2_ENABLE_WEBREADY )
set (WR Webready)
set (WR -Webready)
endif()

set (VS "") # VisualStudio
Expand Down Expand Up @@ -110,7 +110,7 @@ endif()
# Set RV = Release Version
set(RV "Exiv2 v${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}.${PROJECT_VERSION_PATCH}")

set(CPACK_PACKAGE_FILE_NAME ${CPACK_PACKAGE_NAME}-${CPACK_PACKAGE_VERSION}-${BARCH}-${VS}${BUNDLE_NAME}${CC}${LT}${BT}${WR})
set(CPACK_PACKAGE_FILE_NAME ${CPACK_PACKAGE_NAME}-${CPACK_PACKAGE_VERSION}-${VS}${BUNDLE_NAME}-${BARCH}${CC}${LT}${BT}${WR})

# https://stackoverflow.com/questions/17495906/copying-files-and-including-them-in-a-cpack-archive
install(FILES "${PROJECT_SOURCE_DIR}/samples/exifprint.cpp" DESTINATION "samples")
Expand Down

0 comments on commit e0e09f9

Please sign in to comment.