fgerlits commented on code in PR #1766:
URL: https://github.com/apache/nifi-minifi-cpp/pull/1766#discussion_r1577760937


##########
bootstrap.sh:
##########
@@ -445,7 +445,8 @@ build_cmake_command(){
       set_value=OFF
       option_value="${!option}"
       if { [[ "$option_value" = "${FALSE}" ]] && { [[ "$FOUND_VALUE" == 
"DISABLE"* ]] || [[ "$FOUND_VALUE" == *"OFF" ]]; }; } || \
-         { [[ "$option_value" = "${TRUE}" ]] && [[ "$FOUND_VALUE" == "ENABLE"* 
]]; }; then
+         { [[ "$option_value" = "${TRUE}" ]] && [[ "$FOUND_VALUE" == "ENABLE"* 
]]; } ||
+         { [[ "$option_value" = "${TRUE}" ]] && [[ "$FOUND_VALUE" != "ENABLE"* 
]] && [[ "$FOUND_VALUE" != "DISABLE"* ]]; }; then

Review Comment:
   I am a bit bothered by the fact that both `FOOBAR_OFF=FALSE` and 
`FOOBAR_OFF=TRUE` will set the foobar option to `ON`, although I don't think we 
have any CMake variables ending with `OFF` at the moment.
   
   Maybe remove the `|| [[ "$FOUND_VALUE" == *"OFF" ]]` logic to avoid the 
impression that we support variables like this?



-- 
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

Reply via email to