From: mpa Date: Tue, 5 Nov 2013 12:43:56 +0000 (+0000) Subject: CMake: improved reloading of dependent CMake targets in Config file to X-Git-Tag: BR_hydro_v_0_3_1~13 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=1944bd9673205d9666dabccc52d601cc77f92c0a;p=modules%2Fgui.git CMake: improved reloading of dependent CMake targets in Config file to account for COMPONENTS. --- diff --git a/SalomeGUIConfig.cmake.in b/SalomeGUIConfig.cmake.in index 0f7f4c130..9fada3517 100644 --- a/SalomeGUIConfig.cmake.in +++ b/SalomeGUIConfig.cmake.in @@ -88,7 +88,7 @@ SET(_PREREQ_CONFIG_DIR @_PREREQ_DIR_LIST@) SET(_PREREQ_COMPONENTS "@_PREREQ_COMPO_LIST@") LIST(LENGTH _PREREQ_CONFIG_DIR _list_len) IF(NOT _list_len EQUAL 0) -# Another CMake stupidity - FOREACH(... RANGE r) generates r+1 numbers ... + # Another CMake stupidity - FOREACH(... RANGE r) generates r+1 numbers ... MATH(EXPR _range "${_list_len}-1") FOREACH(_p RANGE ${_range}) LIST(GET _PREREQ ${_p} _pkg )