Skip to content

Commit 91a4553

Browse files
committed
Add prefix to search path in library for FindNodeJS.cmake.
1 parent 2b56b61 commit 91a4553

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

cmake/FindNodeJS.cmake

+5
Original file line numberDiff line numberDiff line change
@@ -503,6 +503,11 @@ if(NOT NodeJS_LIBRARY)
503503
endif()
504504
endif()
505505

506+
# Set up the compile path in case of prefix is specified
507+
if(NOT WIN32 AND NOT MSVC AND NodeJS_INSTALL_PREFIX)
508+
set(NodeJS_COMPILE_PATH "${NodeJS_INSTALL_PREFIX}/lib")
509+
endif()
510+
506511
# Find compiled library
507512
find_library(NodeJS_LIBRARY
508513
NAMES ${NodeJS_LIBRARY_NAMES}

0 commit comments

Comments
 (0)