Skip to content

Commit

Permalink
Fix CMake deprecation warning (#246)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
s-barannikov authored Feb 21, 2024
1 parent f8f40ff commit 5945253
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
cmake_minimum_required(VERSION 3.0)
cmake_policy(VERSION 3.0...3.22)
cmake_minimum_required(VERSION 3.0...3.22)

# Include guard for including this project multiple times
if(TARGET Headers)
Expand Down

0 comments on commit 5945253

Please sign in to comment.