diff --git a/CMakeLists.txt b/CMakeLists.txt index 1368acc..63a1694 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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}) @@ -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)