Skip to content

Commit

Permalink
cmake version check for policy pt2
Browse files Browse the repository at this point in the history
  • Loading branch information
rahil-makadia committed Nov 12, 2024
1 parent 91c5442 commit f585ffa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# minimum required CMake version
cmake_minimum_required(VERSION 3.18.0)
# if cmake version is greater than 3.26, set the policy to OLD
if(${CMAKE_VERSION} VERSION_GREATER "3.26")
# if cmake version is greater than 3.27, set the policy to OLD
if(${CMAKE_VERSION} VERSION_GREATER "3.27")
cmake_policy(SET CMP0148 OLD)
endif()

Expand Down

0 comments on commit f585ffa

Please sign in to comment.