From 9cfd55e9314b9b84044e791686d8601660437372 Mon Sep 17 00:00:00 2001 From: Shauren Date: Fri, 1 Mar 2024 11:36:10 +0100 Subject: Build: Replaced deprecated exec_program with execute_process (cherry picked from commit 8eac6224c029c8384f962bb56c768ee5b9c685b9) --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 40f05c5a4d6..cc306ab0ce1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -28,6 +28,10 @@ if(POLICY CMP0144) cmake_policy(SET CMP0144 NEW) # find_package() uses upper-case _ROOT variables endif() +if(POLICY CMP0153) + cmake_policy(SET CMP0153 NEW) # The exec_program() command should not be called +endif() + # Set RPATH-handing (CMake parameters) set(CMAKE_SKIP_BUILD_RPATH 0) set(CMAKE_BUILD_WITH_INSTALL_RPATH 0) -- cgit v1.2.3