File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -355,6 +355,10 @@ if(SWIG_FOUND)
355355 target_include_directories (${SWIG_MODULE_infoLoggerForNodejs_REAL_NAME} PRIVATE ${INFOLOGGER_INCLUDE_DIRS} ${NODEJS_INCLUDE_DIRS} )
356356 target_compile_definitions (${SWIG_MODULE_infoLoggerForNodejs_REAL_NAME} PRIVATE -DBUILDING_NODE_EXTENSION)
357357 set_target_properties (${SWIG_MODULE_infoLoggerForNodejs_REAL_NAME} PROPERTIES OUTPUT_NAME infoLogger SUFFIX ".node" )
358+ set (no_lookup_compilers "Clang" "AppleClang" )
359+ if ( ${CMAKE_CXX_COMPILER_ID} IN_LIST no_lookup_compilers)
360+ set_target_properties (${SWIG_MODULE_infoLoggerForNodejs_REAL_NAME} PROPERTIES LINK_FLAGS "-undefined dynamic_lookup" )
361+ endif ()
358362 install (TARGETS ${SWIG_MODULE_infoLoggerForNodejs_REAL_NAME} DESTINATION ${CMAKE_INSTALL_LIBDIR} )
359363 endif ()
360364
You can’t perform that action at this time.
0 commit comments