add_subdirectory (${examples_dir})
add_subdirectory (validation)
- add_custom_target (tests_CDMATH COMMAND ctest -O tests.log)
+ add_custom_target (tests_CDMATH COMMAND ctest -O testsCDMATH.log)
add_custom_target (check COMMAND ctest -E 'validation|Example')# may be replace ctest -E with ctest -LE
add_custom_target (examples COMMAND ctest -R Example)# may be replace ctest -R with ctest -L
add_custom_target (validation COMMAND ctest -R validation)# may be replace ctest -R with ctest -L
ENDIF( ${PARAVIEW_VERSION} STRGREATER "5.6" OR ${PARAVIEW_VERSION} STREQUAL "5.6" )
# Find python
-IF ( PYTHON_ROOT_DIR OR ENV{PYTHON_ROOT_DIR})
- IF ( PYTHON_ROOT_DIR )
+IF ( DEFINED PYTHON_ROOT_DIR OR DEFINED ENV{PYTHON_ROOT_DIR})
+ IF ( DEFINED PYTHON_ROOT_DIR )
set(Python_ROOT_DIR ${PYTHON_ROOT_DIR} )
- ELSE( PYTHON_ROOT_DIR )
+ ELSE( DEFINED PYTHON_ROOT_DIR )
set(Python_ROOT_DIR $ENV{PYTHON_ROOT_DIR} )
- ENDIF( PYTHON_ROOT_DIR)
-ENDIF(PYTHON_ROOT_DIR OR ENV{PYTHON_ROOT_DIR})
+ ENDIF( DEFINED PYTHON_ROOT_DIR)
+ENDIF(DEFINED PYTHON_ROOT_DIR OR DEFINED ENV{PYTHON_ROOT_DIR})
IF (${CMAKE_VERSION} VERSION_GREATER "3.12.0")
find_package(Python ${PYTHON2OR3} REQUIRED COMPONENTS Interpreter Development )