Skip to content

Commit

Permalink
cmake: singularity-eos_Library only has sources with SINGULARITY_USE_…
Browse files Browse the repository at this point in the history
…FORTRAN
  • Loading branch information
rbberger committed Feb 22, 2024
1 parent f6052e3 commit ed94a20
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -148,8 +148,12 @@ target_link_libraries(singularity-eos_Interface INTERFACE singularity-eos_Common
target_link_libraries(singularity-eos INTERFACE singularity-eos_Interface)

if(SINGULARITY_BUILD_CLOSURE)
add_library(singularity-eos_Library)
set_target_properties(singularity-eos_Library PROPERTIES OUTPUT_NAME singularity-eos)
if(SINGULARITY_USE_FORTRAN)
add_library(singularity-eos_Library)
set_target_properties(singularity-eos_Library PROPERTIES OUTPUT_NAME singularity-eos)
else()
add_library(singularity-eos_Library INTERFACE)
endif()
add_library(singularity-eos::singularity-eos_Library ALIAS singularity-eos_Library)
target_link_libraries(singularity-eos_Library INTERFACE singularity-eos_Common)
target_link_libraries(singularity-eos INTERFACE singularity-eos_Library)
Expand Down

0 comments on commit ed94a20

Please sign in to comment.