Skip to content

Commit 8ba76e6

Browse files
committed
build: set cmake policy for if(IN_LIST) support
1 parent 8e5dbc0 commit 8ba76e6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,10 @@ if(POLICY CMP0056)
5252
cmake_policy(SET CMP0056 NEW) # try_compile(): link flags
5353
endif()
5454

55+
if(POLICY CMP0057)
56+
cmake_policy(SET CMP0057 NEW) # CMake 3.3: if(IN_LIST) support
57+
endif()
58+
5559
if(POLICY CMP0066)
5660
cmake_policy(SET CMP0066 NEW) # CMake 3.7: try_compile(): use per-config flags, like CMAKE_CXX_FLAGS_RELEASE
5761
endif()

0 commit comments

Comments
 (0)