From c3f2e81ae6c0232c914b8043c18cfc6ef25e3ad0 Mon Sep 17 00:00:00 2001 From: michael Date: Sat, 30 Jan 2021 22:11:25 +0100 Subject: [PATCH] Deleted use of variable COREFLOWS_WITH_GUI --- CoreFlows/examples/Python/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CoreFlows/examples/Python/CMakeLists.txt b/CoreFlows/examples/Python/CMakeLists.txt index bb9a6f4..48a0cbf 100755 --- a/CoreFlows/examples/Python/CMakeLists.txt +++ b/CoreFlows/examples/Python/CMakeLists.txt @@ -1,6 +1,6 @@ # Graphic interface---------------------------------------------------------------------------------------------# # -if (COREFLOWS_WITH_GUI) +if ( (EXISTS $ENV{CONFIGURATION_ROOT_DIR}) AND (EXISTS $ENV{KERNEL_ROOT_DIR}) AND (EXISTS $ENV{GUI_ROOT_DIR}) ) SET(CONFIGURATION_ROOT_DIR $ENV{CONFIGURATION_ROOT_DIR} CACHE PATH "Path to the Salome CMake configuration files") IF(EXISTS ${CONFIGURATION_ROOT_DIR}) @@ -51,7 +51,7 @@ if (COREFLOWS_WITH_GUI) ADD_TEST(PythonTests ${PYTHON_EXECUTABLE} ${SALOME_INSTALL_SCRIPT_PYTHON}/tests/SOLVERLAB_2DSphericalExplosion_HEXAGON.py ${CMAKE_INSTALL_PREFIX}/share/meshes/2DHexagonWithTriangles/meshHexagonWithTriangles200.med) SET_TESTS_PROPERTIES(PythonTests PROPERTIES ENVIRONMENT "${tests_env}") # -endif (COREFLOWS_WITH_GUI) # +endif( (EXISTS $ENV{CONFIGURATION_ROOT_DIR}) AND (EXISTS $ENV{KERNEL_ROOT_DIR}) AND (EXISTS $ENV{GUI_ROOT_DIR}) ) # #---------------------------------------------------------------------------------------------------------------# -- 2.39.2