From 32483f1c2414737ecb2322ca8e44548fe19bf065 Mon Sep 17 00:00:00 2001 From: Amine Khaldi Date: Wed, 24 Jan 2024 17:59:11 +0100 Subject: [PATCH] Address pybind11's CMP0148 related dev warning. --- CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index a42d77976..b3bf75592 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -2,6 +2,8 @@ CMAKE_MINIMUM_REQUIRED(VERSION 3.14 FATAL_ERROR) set(CMAKE_CXX_STANDARD 17) set(CMAKE_POSITION_INDEPENDENT_CODE ON) +cmake_policy(SET CMP0148 NEW) + IF(NOT CMAKE_BUILD_TYPE) SET(CMAKE_BUILD_TYPE "RELEASE") ENDIF()