Skip to content

Commit

Permalink
#1765: use vt compilation flags for bundled libraries
Browse files Browse the repository at this point in the history
  • Loading branch information
cz4rs committed May 6, 2022
1 parent be0a753 commit e758cca
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -317,23 +317,32 @@ install(
COMPONENT runtime
)

set_darma_compiler_flags(${FMT_LIBRARY})
set(FMT_LIBRARY_EXPORT ${FMT_LIBRARY})
install(TARGETS ${FMT_LIBRARY} EXPORT ${VIRTUAL_TRANSPORT_LIBRARY})

set_darma_compiler_flags(${ENG_FORMAT_LIBRARY})
install(TARGETS ${ENG_FORMAT_LIBRARY} EXPORT ${VIRTUAL_TRANSPORT_LIBRARY})

# set_darma_compiler_flags(${JSON_LIBRARY})
install(TARGETS ${JSON_LIBRARY} EXPORT ${VIRTUAL_TRANSPORT_LIBRARY})

set_darma_compiler_flags(${BROTLI_LIBRARY})
install(TARGETS ${BROTLI_LIBRARY} EXPORT ${VIRTUAL_TRANSPORT_LIBRARY})

if (vt_mimalloc_enabled)
set_darma_compiler_flags(${MIMALLOC_LIBRARY})
set(MIMALLOC_LIBRARY_EXPORT ${MIMALLOC_LIBRARY})
endif()

if (vt_libfort_enabled)
set_darma_compiler_flags(${FORT_LIBRARY})
set(FORT_LIBRARY_EXPORT ${FORT_LIBRARY})
install(TARGETS ${FORT_LIBRARY} EXPORT ${VIRTUAL_TRANSPORT_LIBRARY})
endif()

if (vt_fcontext_enabled)
set_darma_compiler_flags(${FCONTEXT_LIBRARY})
set(FCONTEXT_LIBRARY_EXPORT ${FCONTEXT_LIBRARY})
endif()

Expand Down

0 comments on commit e758cca

Please sign in to comment.