Skip to content

Commit f724baa

Browse files
committed
Trying to solve issues with NodeJS build from source.
1 parent ad0dbe4 commit f724baa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cmake/FindNodeJS.cmake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -556,13 +556,13 @@ if(NOT NodeJS_LIBRARY)
556556

557557
# Set up the compile path in case of prefix is specified
558558
if(NOT WIN32 AND NOT MSVC AND NodeJS_INSTALL_PREFIX)
559-
set(NodeJS_COMPILE_PATH "${NodeJS_INSTALL_PREFIX}/lib")
559+
set(NodeJS_COMPILE_PREFIX_PATH "${NodeJS_INSTALL_PREFIX}/lib")
560560
endif()
561561

562562
# Find compiled library
563563
find_library(NodeJS_LIBRARY
564564
NAMES ${NodeJS_LIBRARY_NAMES}
565-
PATHS ${NodeJS_COMPILE_PATH}
565+
PATHS ${NodeJS_COMPILE_PATH} ${NodeJS_COMPILE_PREFIX_PATH}
566566
DOC "NodeJS JavaScript Runtime Library"
567567
NO_CMAKE_SYSTEM_PATH
568568
NO_SYSTEM_ENVIRONMENT_PATH

0 commit comments

Comments
 (0)