Hi,
during build our STM32CubeMx / Advanced CMake / Ninja project we get the following warning:
CMake Warning (dev) at C:/Program Files (x86)/Sysprogs/VisualGDB/CMake/embedded/bsp.cmake:242 (exec_program):
Policy CMP0153 is not set: The exec_program command should not be called.
Run "cmake --help-policy CMP0153" for policy details. Use the cmake_policy
command to set the policy and suppress this warning.
Use execute_process() instead.
Call Stack (most recent call first):
CMakeLists.txt:5 (find_bsp)
The bsp.cmake file contains the following lines:
if (NOT EXISTS "${_bsp_mak}")
exec_program(cmd.exe $ENV{VISUALGDB_DIR} ARGS /c VisualGDB.exe /prj2cmake "\"${CMAKE_CURRENT_SOURCE_DIR}\"" "${BSP_ID}" "\"${BSP_SOURCE_PROJECT}\"" \"${BSP_PROJECT_SUBDIR}\" "\"${_bsp_mak}\"")
endif()
How can we suppress or solve this warning?
Best wishes,
Timo