build: set CMake policy to allow FetchContent_Populate
FetchContent_Populate is depracated starting from CMake 3.30. Setting this policy to OLD allows clean CMake builds for configurations that rely on CMake fetch content feature. Signed-off-by: Daniel Jasinski <jasinskidaniel95szcz@gmail.com>
This commit is contained in:
parent
7e0db94063
commit
d77ef098c6
@ -46,6 +46,11 @@ if(CMAKE_VERSION VERSION_GREATER_EQUAL "3.24.0")
|
||||
cmake_policy(SET CMP0135 NEW)
|
||||
endif()
|
||||
|
||||
if(POLICY CMP0169)
|
||||
# allow to call FetchContent_Populate directly
|
||||
cmake_policy(SET CMP0169 OLD)
|
||||
endif()
|
||||
|
||||
# Basic CMake configuration ##################################################
|
||||
|
||||
set(CMAKE_CXX_EXTENSIONS OFF)
|
||||
|
Loading…
Reference in New Issue
Block a user