aboutsummaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2024-03-01 11:36:10 +0100
committerShauren <shauren.trinity@gmail.com>2024-03-01 11:36:10 +0100
commit8eac6224c029c8384f962bb56c768ee5b9c685b9 (patch)
tree82a65c8aeb392f0feeb88c982c9ad5f9391fcf84 /CMakeLists.txt
parent5c44ac178798689a4cd31e59bcfeeeecaafa371e (diff)
Build: Replaced deprecated exec_program with execute_process
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt4
1 files changed, 4 insertions, 0 deletions
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 <PACKAGENAME>_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)