diff --git a/CMakeLists.txt b/CMakeLists.txt index 30ae333..9e79537 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.1) +cmake_minimum_required(VERSION 3.3) project(tsl-robin-map VERSION 1.2.1 LANGUAGES CXX) @@ -33,8 +33,8 @@ if(CMAKE_SOURCE_DIR STREQUAL PROJECT_SOURCE_DIR) set(IS_SUBPROJECT FALSE) endif() -# Installation (only compatible with CMake version >= 3.3) -if(NOT IS_SUBPROJECT AND ${CMAKE_VERSION} VERSION_GREATER "3.2") +# Installation +if(NOT IS_SUBPROJECT) include(CMakePackageConfigHelpers) ## Install include directory and potential natvis file