Skip to content

Commit

Permalink
Ensure string(REPLACE) is called with the right number of arguments (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
alexreinking authored Feb 15, 2024
1 parent 9a740b5 commit e6e1b6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dependencies/wasm/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ function(find_node_js)
execute_process(COMMAND "${NODE_JS_EXECUTABLE}" --version
OUTPUT_VARIABLE NODE_JS_VERSION_RAW
OUTPUT_STRIP_TRAILING_WHITESPACE)
string(REPLACE "v" "" NODE_JS_VERSION ${NODE_JS_VERSION_RAW})
string(REPLACE "v" "" NODE_JS_VERSION "${NODE_JS_VERSION_RAW}")

if (NODE_JS_VERSION VERSION_LESS "16.13")
message(FATAL_ERROR "Halide requires Node v16.13 or later, but found ${NODE_JS_VERSION_RAW} at ${NODE_JS_EXECUTABLE}. Please set NODE_JS_EXECUTABLE on the CMake command line.")
Expand Down

0 comments on commit e6e1b6f

Please sign in to comment.