Skip to content

Commit cad3ba7

Browse files
committed
Address pybind11's CMP0148 related dev warning.
1 parent 8816486 commit cad3ba7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

CMakeLists.txt

+4
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ CMAKE_MINIMUM_REQUIRED(VERSION 3.14 FATAL_ERROR)
22
set(CMAKE_CXX_STANDARD 17)
33
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
44

5+
if(CMAKE_VERSION VERSION_GREATER_EQUAL 3.27)
6+
cmake_policy(SET CMP0148 NEW)
7+
endif()
8+
59
IF(NOT CMAKE_BUILD_TYPE)
610
SET(CMAKE_BUILD_TYPE "RELEASE")
711
ENDIF()

0 commit comments

Comments
 (0)