samskalicky commented on pull request #18904: URL: https://github.com/apache/incubator-mxnet/pull/18904#issuecomment-679581093
@kpuatamazon I had a followup idea, I moved all the library specific build stuff into a **CMakeLists.txt** in the **example/extensions/lib_external_ops** directory. So now all of your library-specific build "stuff" is there and not in the main MXNet **CMakeLists.txt**. In this way, building a custom library does not require changing the main MXNet **CMakeLists.txt**, instead only the small/specific one for your custom library. The main MXNet **CMakeLists.txt** just refers to the one in the **lib_external_ops** directory: https://github.com/apache/incubator-mxnet/pull/18904/files#diff-af3b638bc2a3e6c650974192a53c7291R709 You still have to build MXNet, and then use MXNet's **CMakeLists.txt** to generate the Makefile for your custom library. But at least now the control is completely on the custom library. You can clone MXNet, build it, delete all the example files in **example/extensions/lib_external_ops**, drop in all of your files in the same directory, and build just the "external_lib" target. ---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: [email protected]
