Skip to content

Commit

Permalink
Check Trilinos config path before include
Browse files Browse the repository at this point in the history
  • Loading branch information
bmhan12 committed Aug 14, 2024
1 parent 77c36a7 commit 09f905d
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/cmake/thirdparty/SetupGeosxThirdParty.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -726,7 +726,13 @@ endif()
if(DEFINED TRILINOS_DIR AND ENABLE_TRILINOS)
message(STATUS "TRILINOS_DIR = ${TRILINOS_DIR}")

include(${TRILINOS_DIR}/lib64/cmake/Trilinos/TrilinosConfig.cmake)
if(EXISTS "${TRILINOS_DIR}/lib64/cmake/Trilinos/TrilinosConfig.cmake")
include(${TRILINOS_DIR}/lib64/cmake/Trilinos/TrilinosConfig.cmake)
endif()

if(EXISTS "${TRILINOS_DIR}/lib/cmake/Trilinos/TrilinosConfig.cmake")
include(${TRILINOS_DIR}/lib/cmake/Trilinos/TrilinosConfig.cmake)
endif()

list(REMOVE_ITEM Trilinos_LIBRARIES "gtest")
list(REMOVE_DUPLICATES Trilinos_LIBRARIES)
Expand Down

0 comments on commit 09f905d

Please sign in to comment.