From: vsr Date: Fri, 17 Apr 2020 14:33:52 +0000 (+0300) Subject: Do not print empty detection report (if there are no optional pre-requisites) X-Git-Tag: V9_5_0b1~2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=92a9c251499a0fc6df25adc74c2d03be2df76c34;p=tools%2Fconfiguration.git Do not print empty detection report (if there are no optional pre-requisites) --- diff --git a/cmake/SalomeMacros.cmake b/cmake/SalomeMacros.cmake index ad57253..78ee462 100644 --- a/cmake/SalomeMacros.cmake +++ b/cmake/SalomeMacros.cmake @@ -331,11 +331,11 @@ MACRO(SALOME_PACKAGE_REPORT_AND_CHECK) ELSE() SET(_length 23) ENDIF() - MESSAGE(STATUS "") - MESSAGE(STATUS " Optional packages - Detection report ") - MESSAGE(STATUS " ==================================== ") - MESSAGE(STATUS "") IF(DEFINED _SALOME_OPTIONAL_PACKAGES_names) + MESSAGE(STATUS "") + MESSAGE(STATUS " Optional packages - Detection report ") + MESSAGE(STATUS " ==================================== ") + MESSAGE(STATUS "") LIST(LENGTH _SALOME_OPTIONAL_PACKAGES_names _list_len) # Another CMake stupidity - FOREACH(... RANGE r) generates r+1 numbers ... MATH(EXPR _range "${_list_len}-1") @@ -355,9 +355,9 @@ MACRO(SALOME_PACKAGE_REPORT_AND_CHECK) MESSAGE(STATUS " * ${_pkg_name} -> ${_found_msg}${_flag_msg}") ENDFOREACH() + MESSAGE(STATUS "") + MESSAGE(STATUS "") ENDIF(DEFINED _SALOME_OPTIONAL_PACKAGES_names) - MESSAGE(STATUS "") - MESSAGE(STATUS "") # Failure if some packages were missing: IF(_will_fail)