Skip to content

Commit

Permalink
Require CMake 3.24 when CMAKE_PROJECT_TOP_LEVEL_INCLUDES is specified
Browse files Browse the repository at this point in the history
  • Loading branch information
garethsb authored Mar 22, 2024
1 parent 2b53b76 commit 3165bf7
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion Development/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
cmake_minimum_required(VERSION 3.17 FATAL_ERROR)
# the injection point may be used to configure conan, but that requires CMake 3.24 or higher
# so avoid confusion and reject invocations which attempt to use it on lower versions
# see https://cmake.org/cmake/help/v3.24/variable/CMAKE_PROJECT_TOP_LEVEL_INCLUDES.html
# the alternative is to run conan install first instead
if(CMAKE_PROJECT_TOP_LEVEL_INCLUDES)
cmake_minimum_required(VERSION 3.24 FATAL_ERROR)
else()
cmake_minimum_required(VERSION 3.17 FATAL_ERROR)
endif()

# project name
project(nmos-cpp)
Expand Down

0 comments on commit 3165bf7

Please sign in to comment.