From 3290eaf132972224977540354c38c6a5e85cb38c Mon Sep 17 00:00:00 2001 From: minacode Date: Sun, 10 Dec 2023 21:22:23 +0100 Subject: [PATCH] fix call --- 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")