lordgamez commented on a change in pull request #1124:
URL: https://github.com/apache/nifi-minifi-cpp/pull/1124#discussion_r665137110



##########
File path: CMakeLists.txt
##########
@@ -589,12 +592,12 @@ if (NOT DISABLE_CURL AND NOT DISABLE_CONTROLLER)
 endif()
 
 
-if (NOT DISABLE_CURL)
-  if (ENABLE_PYTHON)
-       if (NOT WIN32)
-               add_subdirectory(python/library)
-       endif()
-  endif(ENABLE_PYTHON)
+if (NOT DISABLE_CURL AND ENABLE_PYTHON AND NOT WIN32)
+       if (ENABLE_NANOFI)
+               add_subdirectory(python/library)
+       else()
+               message(FATAL_ERROR "Nanofi, a dependency of the python 
extension is disabled, therefore Python extension cannot be enabled.")

Review comment:
       In the `python_lib.cpp` file there are some nanofi headers are included 
   ```
   #include "api/nanofi.h"
   #include "blocks/file_blocks.h"
   #include "blocks/comms.h"
   #include "core/processors.h"
   ```
   My assumption is that these are needed for the CApi binding and that's the 
reason for the nanofi dependency.

##########
File path: CMakeLists.txt
##########
@@ -50,6 +50,7 @@ option(ENABLE_OPS "Enable Operations/zlib Tools" ON)
 option(ENABLE_JNI "Instructs the build system to enable the JNI extension" OFF)
 option(ENABLE_OPENCV "Instructs the build system to enable the OpenCV 
extension" OFF)
 option(ENABLE_OPC "Instructs the build system to enable the OPC extension" OFF)
+option(ENABLE_NANOFI "Instructs the build system to enable nanofi library" ON)

Review comment:
       The reason I kept it on by default is the Python extension's dependency 
on it, but I suppose that extension is not that used either so if needed by 
someone they can turn that on as well, and can realize this dependency quite 
easily.




-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to