From 96dd0625112672e841eea723398cc2a1c3489a30 Mon Sep 17 00:00:00 2001 From: Cory Fields Date: Thu, 9 Mar 2023 19:34:07 +0000 Subject: [PATCH] build: bump CMake minimum requirement to 3.13 Among other things this allows us to link against object libraries. --- CMakeLists.txt | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index ddc6c7e6d47bf..2ddf91aed0227 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.1) +cmake_minimum_required(VERSION 3.13) if(CMAKE_VERSION VERSION_GREATER 3.14) # MSVC runtime library flags are selected by the CMAKE_MSVC_RUNTIME_LIBRARY abstraction. @@ -203,11 +203,6 @@ else() try_add_compile_option(-Wundef) endif() -if(CMAKE_VERSION VERSION_GREATER 3.2) - # Honor visibility properties for all target types. - # See: https://cmake.org/cmake/help/latest/policy/CMP0063.html - cmake_policy(SET CMP0063 NEW) -endif() set(CMAKE_C_VISIBILITY_PRESET hidden) # Ask CTest to create a "check" target (e.g., make check) as alias for the "test" target.