From: vsr Date: Tue, 14 Apr 2020 08:34:00 +0000 (+0300) Subject: bos #18970 [CEA] SMESH test won't compile if RESTRICTED/RESTRICTED_ROOT_DIR missing X-Git-Tag: V9_5_0b1~13 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=7e3bbc4f0020fbcb51cd3e0d5bdb046b71019960;p=modules%2Fsmesh.git bos #18970 [CEA] SMESH test won't compile if RESTRICTED/RESTRICTED_ROOT_DIR missing --- diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 2f1689528..c1d734395 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -27,7 +27,7 @@ SET(_test_helper ${CMAKE_SOURCE_DIR}/doc/salome/examples/testme.py) SET(RESTRICTED_ROOT_DIR $ENV{RESTRICTED_ROOT_DIR} CACHE PATH "Path to the restricted repository") -IF(EXISTS ${RESTRICTED_ROOT_DIR} AND WITH_SHAPER_STUDY) +IF(WITH_SHAPER_STUDY AND EXISTS ${RESTRICTED_ROOT_DIR}) FILE(GLOB _restricted_tests "${RESTRICTED_ROOT_DIR}/SMESH/*.py") FOREACH(_test ${_restricted_tests}) GET_FILENAME_COMPONENT(_test_name ${_test} NAME_WE)