We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 2b53b76 + 3165bf7 commit eae5007Copy full SHA for eae5007
Development/CMakeLists.txt
@@ -1,4 +1,12 @@
1
-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
2
+# so avoid confusion and reject invocations which attempt to use it on lower versions
3
+# see https://cmake.org/cmake/help/v3.24/variable/CMAKE_PROJECT_TOP_LEVEL_INCLUDES.html
4
+# the alternative is to run conan install first instead
5
+if(CMAKE_PROJECT_TOP_LEVEL_INCLUDES)
6
+ cmake_minimum_required(VERSION 3.24 FATAL_ERROR)
7
+else()
8
+ cmake_minimum_required(VERSION 3.17 FATAL_ERROR)
9
+endif()
10
11
# project name
12
project(nmos-cpp)
0 commit comments