We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 491c017 commit 2a99ff1Copy full SHA for 2a99ff1
1 file changed
cmake_modules/FindTRILINOS.cmake
@@ -39,7 +39,9 @@ ELSE (TRILINOS_LIBRARY_DIR OR TRILINOS_INCLUDE_DIR OR TRILINOS_ROOT)
39
GET_FILENAME_COMPONENT(TRILINOS_ROOT "${Trilinos_INCLUDE_DIRS}" DIRECTORY)
40
SET(TRILINOS_LIBRARY_DIR "${TRILINOS_ROOT}/lib")
41
ELSE (Trilinos_FOUND) # Not found. This will raise an error
42
- MESSAGE(FATAL_ERROR ${ERROR_NOT_FOUND_MESSAGE})
+ IF(NOT DEFINED MAKE_TRILINOS_OPTIONAL)
43
+ MESSAGE(FATAL_ERROR ${ERROR_NOT_FOUND_MESSAGE})
44
+ ENDIF(NOT DEFINED MAKE_TRILINOS_OPTIONAL)
45
ENDIF (Trilinos_FOUND)
46
ENDIF (TRILINOS_LIBRARY_DIR OR TRILINOS_INCLUDE_DIR OR TRILINOS_ROOT)
47
0 commit comments