From: vsr Date: Wed, 30 Oct 2013 13:13:24 +0000 (+0000) Subject: Additional debug of documentation for SALOME_ACCUMULATE_ENVIRONMENT macro X-Git-Tag: BR_hydro_v_0_3_1~40 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=5e4534993c3ee6cc161a081de603d5f789c7a3c2;p=modules%2Fkernel.git Additional debug of documentation for SALOME_ACCUMULATE_ENVIRONMENT macro --- diff --git a/salome_adm/cmake_files/SalomeMacros.cmake b/salome_adm/cmake_files/SalomeMacros.cmake index 855698179..658e3f688 100755 --- a/salome_adm/cmake_files/SalomeMacros.cmake +++ b/salome_adm/cmake_files/SalomeMacros.cmake @@ -656,18 +656,21 @@ ENDMACRO(SALOME_ACCUMULATE_HEADERS) # _${PROJECT_NAME}_EXTRA_ENV. # # Notes: -# - If in arguments is set keyword CHECK all argument after checked for directory, -# else if NOT_CHECK macro accumulates arguments without checking. -# By default all arguments without keyword must be checked. +# - The arguments list can include optional CHECK or NOCHECK keywords: +# * For all arguments following CHECK keyword the macro perform an +# additional check (see below); this is the default mode, it is suitable +# for path variables (PATH, LD_LIBRARY_PATH, etc). +# * For all arguments following NOCHECK keyword, no additional check is +# performed. # Checking an argument means that we check: -# - that the path actually exists -# - that this is not a standard system path (starting with "/usr"). This avoids +# - That the path actually exists +# - That this is not a standard system path (starting with "/usr"); this avoids # polluting LD_LIBRARY_PATH or PATH with things like "/usr/lib64" ... # MACRO(SALOME_ACCUMULATE_ENVIRONMENT envvar) SET(_is_check ON) FOREACH(_item ${ARGN}) - IF(${_item} STREQUAL "NOT_CHECK") + IF(${_item} STREQUAL "NOCHECK") SET(_is_check OFF) ELSEIF(${_item} STREQUAL "CHECK") SET(_is_check ON)