From 700217c41310b64245a872395d802f5224550c24 Mon Sep 17 00:00:00 2001 From: David Capello Date: Sun, 26 Nov 2023 21:46:20 -0300 Subject: [PATCH] Remove cmake policies that aren't used anymore --- CMakeLists.txt | 9 --------- src/ver/CMakeLists.txt | 1 - 2 files changed, 10 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 749f67b60..4945a70dd 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -9,15 +9,6 @@ set(CMAKE_CXX_STANDARD_REQUIRED ON) set(CMAKE_CXX_EXTENSIONS OFF) # We use -std=c++17 instead of -std=gnu++17 in macOS set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded$<$:Debug>") -if(COMMAND cmake_policy) - # CMP0003: Libraries linked via full path no longer produce linker search paths. - #cmake_policy(SET CMP0003 NEW) - if(CMAKE_MAJOR_VERSION GREATER 2) - # CMP0046: Old behavior to silently ignore non-existent dependencies. - cmake_policy(SET CMP0046 OLD) - endif() -endif() - if(NOT CMAKE_BUILD_TYPE) set(CMAKE_BUILD_TYPE RelWithDebInfo CACHE STRING "Choose the type of build, options are: diff --git a/src/ver/CMakeLists.txt b/src/ver/CMakeLists.txt index bb5b32c65..20669d2b8 100644 --- a/src/ver/CMakeLists.txt +++ b/src/ver/CMakeLists.txt @@ -14,5 +14,4 @@ if(NOT "${CUSTOM_WEBSITE_URL}" STREQUAL "") endif() add_library(ver-lib info.c ${gen_ver_fn}) -add_dependencies(ver-lib generated_version_h) target_include_directories(ver-lib PRIVATE .. "${CMAKE_CURRENT_BINARY_DIR}")