Skip to content

Commit

Permalink
Solve issue of NodeJS with MSVC.
Browse files Browse the repository at this point in the history
  • Loading branch information
viferga committed Feb 3, 2025
1 parent 35f656a commit cd1cb34
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions source/loaders/node_loader/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,8 @@ target_link_libraries(${target}
PRIVATE
${META_PROJECT_NAME}::metacall # MetaCall library

$<$<CXX_COMPILER_ID:MSVC>:${NodeJS_LIBRARY}> # NodeJS library

PUBLIC
${DEFAULT_LIBRARIES}

Expand Down Expand Up @@ -197,9 +199,6 @@ target_compile_options(${target}

add_link_options(${target}
PRIVATE
$<$<CXX_COMPILER_ID:MSVC>:/IGNORE:4199>
$<$<CXX_COMPILER_ID:MSVC>:/DELAYLOAD:${NodeJS_LIBRARY_NAME}>
$<$<CXX_COMPILER_ID:MSVC>:/DELAYLOAD:${NodeJS_LIBRARY_NAME}>
$<$<AND:$<BOOL:${APPLE}>,$<CXX_COMPILER_ID:AppleClang,Clang>>:-undefined dynamic_lookup>

PUBLIC
Expand Down

0 comments on commit cd1cb34

Please sign in to comment.