From 7859bc3824e2e2862f6550ba9c002204339024f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cezary=20Skrzy=C5=84ski?= Date: Thu, 21 Jan 2021 22:44:05 +0100 Subject: [PATCH] #1173: export fcontext regardless of CMake version --- src/CMakeLists.txt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index c794a47fdb..6f95ff393e 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -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() @@ -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}