mirror of
https://github.com/apache/nuttx.git
synced 2026-05-28 11:56:10 +08:00
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:
committed by
Xiang Xiao
parent
7e0db94063
commit
d77ef098c6
@@ -46,6 +46,11 @@ if(CMAKE_VERSION VERSION_GREATER_EQUAL "3.24.0")
|
|||||||
cmake_policy(SET CMP0135 NEW)
|
cmake_policy(SET CMP0135 NEW)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
if(POLICY CMP0169)
|
||||||
|
# allow to call FetchContent_Populate directly
|
||||||
|
cmake_policy(SET CMP0169 OLD)
|
||||||
|
endif()
|
||||||
|
|
||||||
# Basic CMake configuration ##################################################
|
# Basic CMake configuration ##################################################
|
||||||
|
|
||||||
set(CMAKE_CXX_EXTENSIONS OFF)
|
set(CMAKE_CXX_EXTENSIONS OFF)
|
||||||
|
|||||||
Reference in New Issue
Block a user