We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ad0dbe4 commit f724baaCopy full SHA for f724baa
cmake/FindNodeJS.cmake
@@ -556,13 +556,13 @@ if(NOT NodeJS_LIBRARY)
556
557
# Set up the compile path in case of prefix is specified
558
if(NOT WIN32 AND NOT MSVC AND NodeJS_INSTALL_PREFIX)
559
- set(NodeJS_COMPILE_PATH "${NodeJS_INSTALL_PREFIX}/lib")
+ set(NodeJS_COMPILE_PREFIX_PATH "${NodeJS_INSTALL_PREFIX}/lib")
560
endif()
561
562
# Find compiled library
563
find_library(NodeJS_LIBRARY
564
NAMES ${NodeJS_LIBRARY_NAMES}
565
- PATHS ${NodeJS_COMPILE_PATH}
+ PATHS ${NodeJS_COMPILE_PATH} ${NodeJS_COMPILE_PREFIX_PATH}
566
DOC "NodeJS JavaScript Runtime Library"
567
NO_CMAKE_SYSTEM_PATH
568
NO_SYSTEM_ENVIRONMENT_PATH
0 commit comments