Skip to content

Commit

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

# if on a Mac, use any GNU compiler from Homebrew
if(APPLE)
Expand Down

0 comments on commit 91c5442

Please sign in to comment.