Skip to content

Commit

Permalink
Add max version to placate CMake
Browse files Browse the repository at this point in the history
Recent CMake warns "Compatibility with CMake < 3.5
will be removed from a future version of CMake".
Quiet this warning by setting a policy version.
  • Loading branch information
benmwebb committed Jun 18, 2024
1 parent 693366f commit ecba92f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Are we running cmake from this directory (out of tree build) ?
if(CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR)
cmake_minimum_required(VERSION 2.8.12)
cmake_minimum_required(VERSION 2.8.12...3.6.0)
project(imp_module)

if(POLICY CMP0058)
Expand Down

0 comments on commit ecba92f

Please sign in to comment.