Skip to content

Commit

Permalink
FindNodejs: extend search path to detect ubuntu provided nodejs
Browse files Browse the repository at this point in the history
Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
  • Loading branch information
Propanu committed Feb 7, 2018
1 parent cb03cab commit 60b77d5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cmake/modules/FindNodejs.cmake
Expand Up @@ -22,10 +22,12 @@ endif()

# Now look for node. Flag an error if not found
find_path (NODE_ROOT_DIR
NAMES node.h
NAMES node.h src/node.h
PATH_SUFFIXES node node4 node5 node6 node7 node8 nodejs
PATHS /usr/include /usr/local/include)

message(STATUS "INFO - NODE_ROOT_DIR is ${NODE_ROOT_DIR}")

if (NODE_ROOT_DIR)
add_include_dir(${NODE_ROOT_DIR})
add_include_dir(${NODE_ROOT_DIR}/deps/uv/include)
Expand Down

0 comments on commit 60b77d5

Please sign in to comment.