Skip to content

fix: silence the warnings from ExternalProject_Add #1972

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions cmake/FindArduinoCtags.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@ include(FetchContent)
include(FindPackageHandleStandardArgs)

function(get_ctags)

# Prevent warnings in CMake>=3.24 regarding ExternalProject_Add()
# cf. https://cmake.org/cmake/help/latest/policy/CMP0135.html
cmake_policy(SET CMP0135 OLD)

cmake_host_system_information(
RESULT HOSTINFO
QUERY OS_NAME OS_PLATFORM
Expand Down
5 changes: 5 additions & 0 deletions cmake/ensure_core_deps.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,11 @@ function(get_target_url JSONARR OUT_URL OUT_SHA)
endfunction()

function(declare_deps CORE_VERSION)

# Prevent warnings in CMake>=3.24 regarding ExternalProject_Add()
# cf. https://cmake.org/cmake/help/latest/policy/CMP0135.html
cmake_policy(SET CMP0135 OLD)

file(REAL_PATH "${DL_DIR}/package_stmicroelectronics_index.json" JSONFILE)
if (NOT EXISTS ${JSONFILE})
file(DOWNLOAD "${JSONCONFIG_URL}" ${JSONFILE})
Expand Down