Skip to content

Commit

Permalink
Merge Pull Request trilinos#11199 from trilinos/Trilinos/alway-build-…
Browse files Browse the repository at this point in the history
…muelu-adapters

Automatically Merged using Trilinos Pull Request AutoTester
PR Title: MueLu: reenable libmuelu-adapters.a
PR Author: jhux2
  • Loading branch information
trilinos-autotester authored Oct 27, 2022
2 parents aa2e582 + 3463c0a commit dbdb90a
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 11 deletions.
19 changes: 10 additions & 9 deletions packages/muelu/adapters/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -211,16 +211,17 @@ APPEND_GLOB(HEADERS ${DIR}/*.hpp)
APPEND_GLOB(SOURCES ${DIR}/*.cpp)

IF ("${SOURCES}" STREQUAL "")
MESSAGE(STATUS "no adapters enabled, skipping generation of the muelu-adapters library")
ELSE()
TRIBITS_ADD_LIBRARY(
muelu-adapters
HEADERS ${HEADERS}
SOURCES ${SOURCES}
DEPLIBS muelu
ADDED_LIB_TARGET_NAME_OUT MUELU_ADAPTERS_LIBNAME
)
# always include at least one file in the adapters library.
SET_AND_INC_DIRS(DIR ${CMAKE_CURRENT_SOURCE_DIR})
APPEND_GLOB(SOURCES ${DIR}/muelu-trivial-adapter.cpp)
ENDIF()
TRIBITS_ADD_LIBRARY(
muelu-adapters
HEADERS ${HEADERS}
SOURCES ${SOURCES}
DEPLIBS muelu
ADDED_LIB_TARGET_NAME_OUT MUELU_ADAPTERS_LIBNAME
)

# Set linker language explicitly for CUDA builds.
set_target_properties(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
// ***********************************************************************
//
// @HEADER
// MacOs 'ar' utility doesn't work on empty library.
// If no adapters are enabled, this file will be archived so that the library
// is not empty.

void libmuelu_adapters() {}
void muelu_trivial_adapter() {}

0 comments on commit dbdb90a

Please sign in to comment.