Skip to content

Commit

Permalink
Trying to solve issues with NodeJS build from source.
Browse files Browse the repository at this point in the history
  • Loading branch information
viferga committed Feb 21, 2024
1 parent ad0dbe4 commit f724baa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmake/FindNodeJS.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -556,13 +556,13 @@ if(NOT NodeJS_LIBRARY)

# 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")
set(NodeJS_COMPILE_PREFIX_PATH "${NodeJS_INSTALL_PREFIX}/lib")
endif()

# Find compiled library
find_library(NodeJS_LIBRARY
NAMES ${NodeJS_LIBRARY_NAMES}
PATHS ${NodeJS_COMPILE_PATH}
PATHS ${NodeJS_COMPILE_PATH} ${NodeJS_COMPILE_PREFIX_PATH}
DOC "NodeJS JavaScript Runtime Library"
NO_CMAKE_SYSTEM_PATH
NO_SYSTEM_ENVIRONMENT_PATH
Expand Down

0 comments on commit f724baa

Please sign in to comment.