Commit 5199278d by pybind11_abseil authors Committed by Copybara-Service

Previous commit would break on versions of CMAKE < 3.24. Fixed.

PiperOrigin-RevId: 597043524
parent ca5b7bd9
...@@ -11,7 +11,10 @@ set(ABSL_PROPAGATE_CXX_STD ON) ...@@ -11,7 +11,10 @@ set(ABSL_PROPAGATE_CXX_STD ON)
set(BUILD_TESTING OFF) set(BUILD_TESTING OFF)
set(CMAKE_POSITION_INDEPENDENT_CODE TRUE) set(CMAKE_POSITION_INDEPENDENT_CODE TRUE)
set(CMAKE_INTERPROCEDURAL_OPTIMIZATION FALSE) set(CMAKE_INTERPROCEDURAL_OPTIMIZATION FALSE)
cmake_policy(SET CMP0135 NEW)
if(CMAKE_VERSION VERSION_GREATER_EQUAL 3.24)
cmake_policy(SET CMP0135 NEW)
endif()
find_package(Python3 COMPONENTS interpreter development) find_package(Python3 COMPONENTS interpreter development)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment