From 92a9c251499a0fc6df25adc74c2d03be2df76c34 Mon Sep 17 00:00:00 2001 From: vsr Date: Fri, 17 Apr 2020 17:33:52 +0300 Subject: [PATCH] Do not print empty detection report (if there are no optional pre-requisites) --- cmake/SalomeMacros.cmake | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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) -- 2.39.2