Skip to content

Commit

Permalink
Set new cmake policy CMP0057
Browse files Browse the repository at this point in the history
This fixes build error with cmake 3.20.3 in
CheckLinkerFlag.cmake.
  • Loading branch information
9EOR9 committed Nov 7, 2022
1 parent 44383e3 commit 45a5ee1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
CMAKE_MINIMUM_REQUIRED(VERSION 2.8.12 FATAL_ERROR)
INCLUDE(CheckFunctionExists)
IF(COMMAND CMAKE_POLICY)
SET(NEW_POLICIES CMP0003 CMP0022 CMP0023 CMP0077 CMP0069 CMP0075)
SET(NEW_POLICIES CMP0003 CMP0022 CMP0023 CMP0057 CMP0077 CMP0069 CMP0075)
FOREACH(TYPE OLD NEW)
FOREACH(P ${${TYPE}_POLICIES})
IF(POLICY ${P})
Expand Down

0 comments on commit 45a5ee1

Please sign in to comment.