Commit ee7957af authored by Thomas Braun's avatar Thomas Braun
Browse files

CMakeLists.txt: Raise minimum required cmake version

3.18 will be the new minimum required version for all C++ code maintained
by the cppTango developers.

The maximum version is set to the latest release as of now.
parent ba9d8f5d
Loading
Loading
Loading
Loading
+2 −13
Original line number Diff line number Diff line
cmake_minimum_required(VERSION 3.7...3.22 FATAL_ERROR)
cmake_minimum_required(VERSION 3.18...3.26 FATAL_ERROR)
project(TangoAccessControl VERSION 2.19 LANGUAGES CXX)

# Ensure we have access to MSVC_RUNTIME_LIBRARY property for Windows builds
if (WIN32 AND NOT CMAKE_VERSION VERSION_GREATER_EQUAL 3.15)
    message(FATAL_ERROR "cmake ${CMAKE_VERSION} is not supported for Windows builds")
endif()

if (CMAKE_VERSION VERSION_GREATER_EQUAL 3.11)
get_property(IS_MULTI_CONFIG GLOBAL PROPERTY GENERATOR_IS_MULTI_CONFIG)
elseif(CMAKE_CONFIGURATION_TYPES)
    set(IS_MULTI_CONFIG YES)
else()
    set(IS_MULTI_CONFIG NO)
endif()

if(NOT CMAKE_BUILD_TYPE AND NOT IS_MULTI_CONFIG)
    message(STATUS "No build type specified - default is DEBUG")