Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix linking of ExternalIO on Wheeler #5530

Merged
merged 1 commit into from
Oct 3, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 14 additions & 14 deletions src/IO/External/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@

set(LIBRARY ExternalIO)

if (NOT TARGET SpEC::Exporter AND NOT TARGET FUKA::Exporter)
return()
set(_LIB_TYPE INTERFACE)
if (TARGET FUKA::Exporter)
set(_LIB_TYPE "")
endif()

add_spectre_library(${LIBRARY})
add_spectre_library(${LIBRARY} ${_LIB_TYPE})

if (TARGET SpEC::Exporter)
spectre_target_headers(
Expand All @@ -18,11 +19,14 @@ if (TARGET SpEC::Exporter)
)
target_link_libraries(
${LIBRARY}
PUBLIC
INTERFACE
DataStructures
ErrorHandling
SpEC::Exporter
Utilities
)
target_compile_definitions(
ExternalIO INTERFACE HAS_SPEC_EXPORTER)
${LIBRARY} INTERFACE HAS_SPEC_EXPORTER)
endif()

if (TARGET FUKA::Exporter)
Expand All @@ -40,18 +44,14 @@ if (TARGET FUKA::Exporter)
target_link_libraries(
${LIBRARY}
PUBLIC
DataStructures
FUKA::Exporter
GeneralRelativity
Hydro
Utilities
PRIVATE
ErrorHandling
)
target_compile_definitions(
ExternalIO INTERFACE HAS_FUKA_EXPORTER)
${LIBRARY} INTERFACE HAS_FUKA_EXPORTER)
endif()

target_link_libraries(
${LIBRARY}
PUBLIC
DataStructures
ErrorHandling
Utilities
)
Loading