Skip to content

Commit d20c456

Browse files
authored
Merge pull request opencv#26320 from mshabunin:fix-cmake-in-list
build: set cmake policy for if(IN_LIST) support
2 parents 8e5dbc0 + 8ba76e6 commit d20c456

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)