Skip to content

Commit

Permalink
[irods/irods#5250] cmake: set version number in project call
Browse files Browse the repository at this point in the history
  • Loading branch information
SwooshyCueb authored and trel committed Jan 29, 2021
1 parent 259c84a commit 2bb6e29
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
cmake_minimum_required(VERSION 3.7.0 FATAL_ERROR)

find_package(IRODS 4.2.9 EXACT REQUIRED)

set(IRODS_PLUGIN_REVISION "0")
set(IRODS_PLUGIN_VERSION "${IRODS_VERSION}.${IRODS_PLUGIN_REVISION}")

set(CMAKE_C_COMPILER ${IRODS_EXTERNALS_FULLPATH_CLANG}/bin/clang)
set(CMAKE_CXX_COMPILER ${IRODS_EXTERNALS_FULLPATH_CLANG}/bin/clang++)
set(CMAKE_EXE_LINKER_FLAGS_INIT "${CMAKE_EXE_LINKER_FLAGS} -stdlib=libc++")

project(irods_rule_engine_plugin-metadata_guard C CXX)
project(irods_rule_engine_plugin-metadata_guard
VERSION "${IRODS_PLUGIN_VERSION}"
LANGUAGES C CXX)

include(${IRODS_TARGETS_PATH})

Expand Down Expand Up @@ -72,7 +74,7 @@ install(FILES ${CMAKE_SOURCE_DIR}/packaging/run_metadata_guard_test.py

set(PLUGIN_PACKAGE_NAME irods-rule-engine-plugin-metadata-guard)

set(CPACK_PACKAGE_VERSION ${IRODS_VERSION}.${IRODS_PLUGIN_REVISION})
set(CPACK_PACKAGE_VERSION ${IRODS_PLUGIN_VERSION})
set(CPACK_PACKAGE_FILE_NAME "${PLUGIN_PACKAGE_NAME}-${CPACK_PACKAGE_VERSION}-${IRODS_LINUX_DISTRIBUTION_NAME}${IRODS_LINUX_DISTRIBUTION_VERSION_MAJOR}-${CMAKE_SYSTEM_PROCESSOR}")
set(CPACK_INCLUDE_TOPLEVEL_DIRECTORY OFF)
set(CPACK_COMPONENT_INCLUDE_TOPLEVEL_DIRECTORY OFF)
Expand Down

0 comments on commit 2bb6e29

Please sign in to comment.