cmake: add nodejs executable name
authorJustin Brown <justin.m.brown@intel.com>
Fri, 10 Jul 2015 22:45:25 +0000 (15:45 -0700)
committerBrendan Le Foll <brendan.le.foll@intel.com>
Mon, 13 Jul 2015 10:26:18 +0000 (11:26 +0100)
The Debian package names the executable nodejs instead of node

Signed-off-by: Justin Brown <justin.m.brown@intel.com>
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
cmake/modules/FindNodejs.cmake

index 5f333b2..51024fb 100644 (file)
@@ -1,4 +1,4 @@
-find_program (NODE_EXECUTABLE NAMES node
+find_program (NODE_EXECUTABLE NAMES node nodejs
     HINTS
     $ENV{NODE_DIR}
     PATH_SUFFIXES bin