Skip to content

Commit

Permalink
cmake fix for Trilinos Tpetra
Browse files Browse the repository at this point in the history
  • Loading branch information
wortiz committed Apr 5, 2024
1 parent 3125283 commit d818ff8
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ if(${stratimikos_package_index} GREATER_EQUAL 0)
endif()
endif()

if($Trilinos_VERSION VERSION_LESS 14.0.0)
if(${Trilinos_VERSION} VERSION_LESS 14.0.0)
message(WARNING "Trilinos version less than 14.0.0, Tpetra not supported")
else()
list(FIND Trilinos_PACKAGE_LIST Tpetra tpetra_package_index)
Expand Down Expand Up @@ -1002,12 +1002,12 @@ if(ENABLE_PETSC AND PETSC_FOUND)
${PETSC_STATIC_LIBRARY_DIRS})
endif()

if($Trilinos_VERSION VERSION_LESS 14.0.0)
# if(${Trilinos_VERSION} VERSION_LESS 14.0.0)
set(GOMA_TRILINOS_LIBRARIES ${Trilinos_LIBRARIES} ${Trilinos_TPL_LIBRARIES}
${Trilinos_EXTRA_LD_FLAGS})
else()
set(GOMA_TRILINOS_LIBRARIES Trilinos::all_libs)
endif()
# else()
# set(GOMA_TRILINOS_LIBRARIES Trilinos::all_libs)
# endif()

set(GOMA_TPL_LIBRARIES
${SEACASExodus_LIBRARIES}
Expand Down

0 comments on commit d818ff8

Please sign in to comment.