Skip to content

Commit

Permalink
Make Omega_h::omega_h alias available during build
Browse files Browse the repository at this point in the history
Allows a downstream app to link against Omega_h::omega_h,
regardless of whether Omega_h is used as a found dependency
(via find_package) or as a sub-project (e.g., via FetchContent)
  • Loading branch information
bartgol committed Nov 7, 2023
1 parent d932d7f commit 04fca4e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,7 @@ if (Omega_h_USE_CUDA AND NOT Omega_h_USE_Kokkos)
endif()

add_library(omega_h ${Omega_h_SOURCES})
add_library(Omega_h::omega_h ALIAS omega_h)

set_property(TARGET omega_h PROPERTY CXX_STANDARD "17")
set_property(TARGET omega_h PROPERTY CXX_STANDARD_REQUIRED ON)
Expand Down

0 comments on commit 04fca4e

Please sign in to comment.