adamdebreceni commented on a change in pull request #1211: URL: https://github.com/apache/nifi-minifi-cpp/pull/1211#discussion_r749145857
########## File path: cmake/Extensions.cmake ########## @@ -22,10 +22,31 @@ define_property(GLOBAL PROPERTY EXTENSION-OPTIONS set_property(GLOBAL PROPERTY EXTENSION-OPTIONS "") +set(extension-build-info-file "${CMAKE_CURRENT_BINARY_DIR}/ExtensionBuildInfo.cpp") +file(GENERATE OUTPUT ${extension-build-info-file} + CONTENT "\ + #include \"utils/Export.h\"\n\ + #ifdef BUILD_ID_VARIABLE_NAME\n\ + EXTENSIONAPI extern const char* const BUILD_ID_VARIABLE_NAME = \"__EXTENSION_BUILD_IDENTIFIER_BEGIN__${BUILD_IDENTIFIER}__EXTENSION_BUILD_IDENTIFIER_END__\";\n\ Review comment: could you expand on this? should this be split into a separate declaration with `extern` and a definition? I found that without `extern` this const variable would have internal linkage and stripped from the shared library -- 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