Skip to content

Commit

Permalink
#1173: export fcontext regardless of CMake version
Browse files Browse the repository at this point in the history
  • Loading branch information
cz4rs committed Feb 1, 2021
1 parent a43dc5a commit 7859bc3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -328,10 +328,6 @@ else()
endif()

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

if (vt_mimalloc_enabled)
set(MIMALLOC_LIBRARY_EXPORT ${MIMALLOC_LIBRARY})
endif()
Expand All @@ -352,6 +348,10 @@ if (cmake_do_install)
endif()
endif()

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

# Export to build directory
export(
TARGETS ${VIRTUAL_TRANSPORT_LIBRARY}
Expand Down

0 comments on commit 7859bc3

Please sign in to comment.