adamdebreceni commented on a change in pull request #1138: URL: https://github.com/apache/nifi-minifi-cpp/pull/1138#discussion_r678123041
########## File path: extensions/script/CMakeLists.txt ########## @@ -68,13 +58,10 @@ if (ENABLE_LUA_SCRIPTING) add_definitions(-DLUA_SUPPORT) file(GLOB LUA_SOURCES "lua/*.cpp") - add_library(minifi-lua-extensions STATIC ${LUA_SOURCES}) - - target_link_libraries(minifi-lua-extensions ${LIBMINIFI}) - target_link_libraries(minifi-lua-extensions ${LUA_LIBRARIES} sol) - target_link_libraries(minifi-script-extensions minifi-lua-extensions) + target_sources(minifi-script-extensions PRIVATE ${LUA_SOURCES}) - target_compile_features(minifi-lua-extensions PUBLIC cxx_std_14) + target_link_libraries(minifi-script-extensions ${LUA_LIBRARIES} sol) + target_compile_features(minifi-script-extensions PUBLIC cxx_std_14) Review comment: tried separating them into `script-core.a` (from `extensions/script/*.cpp`), `lua.a` and `python.a`, and merging them into a dynamic lib, but did not find the right combination of cmake commands to avoid linker errors, the separation would be artificial at best anyway IMO, since e.g. `ExecuteScript.cpp` has a number of if-defs checking for lua and python supports -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubscr...@nifi.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org