mirror of
https://github.com/FairRootGroup/FairMQ.git
synced 2025-10-17 02:21:47 +00:00
CMake: Set policies by version
This is the recommended way of dealing with policies. Also, this patch fixes a problem with the policies being set at the wrong depth in the policy stack.
This commit is contained in:
committed by
Alexey Rybalchenko
parent
40f6db430a
commit
f8f997abe6
@@ -7,13 +7,12 @@
|
||||
################################################################################
|
||||
|
||||
cmake_minimum_required(VERSION 3.10 FATAL_ERROR)
|
||||
|
||||
cmake_policy(VERSION 3.10...3.14)
|
||||
|
||||
# Project ######################################################################
|
||||
set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake)
|
||||
include(FairMQLib)
|
||||
|
||||
set_fairmq_cmake_policies()
|
||||
get_git_version()
|
||||
|
||||
project(FairMQ VERSION ${PROJECT_VERSION} LANGUAGES CXX)
|
||||
|
Reference in New Issue
Block a user