Skip to content

Commit

Permalink
CMake: CMP0148 might not exist
Browse files Browse the repository at this point in the history
  • Loading branch information
nim65s committed May 15, 2024
1 parent b8381e7 commit a310077
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ option(USE_REALSENSE "Use RealSense D435" ON)
option(USE_GTEST "Use gtest" OFF)
option(USE_XFEATURES2D "Use OpenCV xfeatures2d" OFF)

cmake_policy(SET CMP0148 OLD) # required for current pybind11
if(CMAKE_VERSION VERSION_GREATER_EQUAL "3.27.0")
cmake_policy(SET CMP0148 OLD) # required for current pybind11
endif()

# set(CMAKE_BUILD_TYPE "RELEASE") set(CMAKE_BUILD_TYPE "DEBUG")

Expand Down

0 comments on commit a310077

Please sign in to comment.