Skip to content

Commit 5945253

Browse files
authored
Fix CMake deprecation warning (#246)
Recent versions of CMake issue a deprecation warning: ``` CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required): Compatibility with CMake < 3.5 will be removed from a future version of CMake. Update the VERSION argument <min> value or use a ...<max> suffix to tell CMake that the project does not need compatibility with older versions. ``` Silence this warning by using a `...<max>` suffix in `cmake_minimum_required` invocation. No functional change intended.
1 parent f8f40ff commit 5945253

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

CMakeLists.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
cmake_minimum_required(VERSION 3.0)
2-
cmake_policy(VERSION 3.0...3.22)
1+
cmake_minimum_required(VERSION 3.0...3.22)
32

43
# Include guard for including this project multiple times
54
if(TARGET Headers)

0 commit comments

Comments
 (0)