diff options
author | Eric Hawicz <erh+git@nimenees.com> | 2022-12-27 09:32:33 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-27 09:32:33 -0500 |
commit | 343f24f9201eaff669171adde91f8763a33dc695 (patch) | |
tree | 7c5a7f1e518f5ecb73d08870be2bcfe9da1fa950 | |
parent | 6ec5e5842d599a7e9414f9626e5e56c6a5b3bf9b (diff) | |
parent | 3cc0c47221c71c31b31d056fd226e67ab79c1234 (diff) | |
download | json-c-343f24f9201eaff669171adde91f8763a33dc695.tar.gz |
Merge pull request #804 from yrashk/cmp-0042
Problem: cmake 3.25.1 warns about CMP0042 not being set
-rw-r--r-- | CMakeLists.txt | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index d234af7..1fc89e7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -22,10 +22,17 @@ endif() # If we've got 3.0 then it's good, let's provide support. Otherwise, leave it be. if(POLICY CMP0038) - # Policy CMP0038 introduced was in CMake 3.0 + # Policy CMP0038 was introduced in CMake 3.0 cmake_policy(SET CMP0038 NEW) endif() +if(POLICY CMP0042) + # Policy CMP0042 was introduced in CMake 3.0 + # CMake version 3.25.1 warns when the policy is not set and uses OLD behavior + # We set it explicitly to avoid the warning + cmake_policy(SET CMP0042 OLD) +endif() + if(POLICY CMP0054) cmake_policy(SET CMP0054 NEW) endif() |