Fix FindNodeJS.cmake

Only `node` executable was searched.
This commit is contained in:
Markus Mäkelä
2017-08-02 16:04:29 +03:00
parent 92bc3f046e
commit 1ec7d9a712

View File

@ -5,7 +5,7 @@
# NODEJS_EXECUTABLE Path to the Node.js executable
# NODEJS_VERSION Node.js version
find_program(NODEJS_EXECUTABLE node)
find_program(NODEJS_EXECUTABLE NAMES node nodejs)
if (${NODEJS_EXECUTABLE} MATCHES "NOTFOUND")
message(STATUS "Could not find Node.js")