From 39b9b17625f2ecf82a0c4ff243000261a7960fe1 Mon Sep 17 00:00:00 2001 From: Max Friedrich Date: Mon, 11 Dec 2023 22:12:54 +0100 Subject: [PATCH] Fix CMP0153 for newer CMake versions (#133) Fixes deprecated call and replaces it with execute_process https://cmake.org/cmake/help/latest/policy/CMP0153.html#policy:CMP0153 Co-authored-by: minacode --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 37d87b7..cef0e02 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -271,7 +271,7 @@ target_link_libraries(infinisim PRIVATE QCBOR) # check version number of installed node package for minimum required find_program(NODE_EXE "node" NO_CACHE QUIET) if(NODE_EXE) - exec_program("${NODE_EXE}" ARGS "--version" OUTPUT_VARIABLE NODE_VERSION) + execute_process(COMMAND "${NODE_EXE}" "--version" OUTPUT_VARIABLE NODE_VERSION) string(REPLACE "v" "" NODE_VERSION "${NODE_VERSION}") if(NODE_VERSION VERSION_LESS 14.0.0) message(WARNING "Node version v${NODE_VERSION} is less than required 14+, you will probably encounter build errors")