From e77cce7a7fe995f0ea4c8e1faafcc70373945702 Mon Sep 17 00:00:00 2001 From: Natalia Portillo Date: Thu, 2 Oct 2025 22:16:27 +0100 Subject: [PATCH] Update CMakeLists.txt to require CMake version 3.13 and set policy for compatibility --- CMakeLists.txt | 3 +++ tests/CMakeLists.txt | 2 ++ 2 files changed, 5 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 5b0b06b..f14cc76 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -185,6 +185,9 @@ endif() set(CMAKE_POSITION_INDEPENDENT_CODE ON) # Add slog submodule +if(POLICY CMP0000) + cmake_policy(VERSION 3.5) +endif() add_subdirectory(3rdparty/slog) include_directories(include 3rdparty/uthash/src) diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 291abcc..1628a0c 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -1,3 +1,5 @@ +cmake_minimum_required(VERSION 3.13) + # 'Google_test' is the subproject name project(tests)