nodejs: Fixed cmake bug in v8 and uv detection logic
Signed-off-by: Henry Bruce <henry.bruce@intel.com> Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
This commit is contained in:
committed by
Brendan Le Foll
parent
3924070171
commit
8ff42482ec
@@ -36,14 +36,14 @@ else()
|
|||||||
endif()
|
endif()
|
||||||
|
|
||||||
# Check that v8.h is in NODEJS_INCLUDE_DIRS
|
# Check that v8.h is in NODEJS_INCLUDE_DIRS
|
||||||
find_path (V8_ROOT_DIR "v8.h" PATHS NODEJS_INCLUDE_DIRS)
|
find_path (V8_ROOT_DIR "v8.h" PATHS ${NODEJS_INCLUDE_DIRS})
|
||||||
if (NOT V8_ROOT_DIR)
|
if (NOT V8_ROOT_DIR)
|
||||||
unset(NODEJS_INCLUDE_DIRS)
|
unset(NODEJS_INCLUDE_DIRS)
|
||||||
message(ERROR " - v8.h not found")
|
message(ERROR " - v8.h not found")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# Check that uv.h is in NODEJS_INCLUDE_DIRS
|
# Check that uv.h is in NODEJS_INCLUDE_DIRS
|
||||||
find_path (UV_ROOT_DIR "uv.h" PATHS NODEJS_INCLUDE_DIRS)
|
find_path (UV_ROOT_DIR "uv.h" PATHS ${NODEJS_INCLUDE_DIRS})
|
||||||
if (NOT UV_ROOT_DIR)
|
if (NOT UV_ROOT_DIR)
|
||||||
unset(NODEJS_INCLUDE_DIRS)
|
unset(NODEJS_INCLUDE_DIRS)
|
||||||
message(ERROR " - uv.h not found")
|
message(ERROR " - uv.h not found")
|
||||||
|
|||||||
Reference in New Issue
Block a user