Skip to content

Commit

Permalink
Add prefix to search path in library for FindNodeJS.cmake.
Browse files Browse the repository at this point in the history
  • Loading branch information
viferga committed Jul 18, 2022
1 parent 2b56b61 commit 91a4553
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cmake/FindNodeJS.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -503,6 +503,11 @@ if(NOT NodeJS_LIBRARY)
endif()
endif()

# Set up the compile path in case of prefix is specified
if(NOT WIN32 AND NOT MSVC AND NodeJS_INSTALL_PREFIX)
set(NodeJS_COMPILE_PATH "${NodeJS_INSTALL_PREFIX}/lib")
endif()

# Find compiled library
find_library(NodeJS_LIBRARY
NAMES ${NodeJS_LIBRARY_NAMES}
Expand Down

0 comments on commit 91a4553

Please sign in to comment.