This is an automated email from the ASF dual-hosted git repository.

szaszm pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/nifi-minifi-cpp.git

commit 68ff1f8c00dd68bb7493ccde9f4199cab08706e8
Author: Gabor Gyimesi <[email protected]>
AuthorDate: Wed Apr 24 14:59:45 2024 +0200

    MINIFICPP-2337 Fix OpenSSL toggle in bootstrap.sh
    
    Closes #1766
    
    Signed-off-by: Marton Szasz <[email protected]>
---
 bootstrap.sh | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/bootstrap.sh b/bootstrap.sh
index 550a4d3fd..49f908ed2 100755
--- a/bootstrap.sh
+++ b/bootstrap.sh
@@ -444,8 +444,9 @@ build_cmake_command(){
     if [ "$FOUND" = "1" ]; then
       set_value=OFF
       option_value="${!option}"
-      if { [[ "$option_value" = "${FALSE}" ]] && { [[ "$FOUND_VALUE" == 
"DISABLE"* ]] || [[ "$FOUND_VALUE" == *"OFF" ]]; }; } || \
-         { [[ "$option_value" = "${TRUE}" ]] && [[ "$FOUND_VALUE" == "ENABLE"* 
]]; }; then
+      if { [[ "$option_value" = "${FALSE}" ]] && [[ "$FOUND_VALUE" == 
"DISABLE"* ]]; } || \
+         { [[ "$option_value" = "${TRUE}" ]] && [[ "$FOUND_VALUE" == "ENABLE"* 
]]; } || \
+         { [[ "$option_value" = "${TRUE}" ]] && [[ "$FOUND_VALUE" != "ENABLE"* 
]] && [[ "$FOUND_VALUE" != "DISABLE"* ]]; }; then
         set_value=ON
       fi
       CMAKE_BUILD_COMMAND="${CMAKE_BUILD_COMMAND} 
-D${FOUND_VALUE}=${set_value}"

Reply via email to