Merge pull request #26320 from mshabunin:fix-cmake-in-list

build: set cmake policy for if(IN_LIST) support
This commit is contained in:
Alexander Smorkalov 2024-10-17 07:36:02 +03:00 committed by GitHub
commit d20c456ab7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -52,6 +52,10 @@ if(POLICY CMP0056)
cmake_policy(SET CMP0056 NEW) # try_compile(): link flags
endif()
if(POLICY CMP0057)
cmake_policy(SET CMP0057 NEW) # CMake 3.3: if(IN_LIST) support
endif()
if(POLICY CMP0066)
cmake_policy(SET CMP0066 NEW) # CMake 3.7: try_compile(): use per-config flags, like CMAKE_CXX_FLAGS_RELEASE
endif()