From 95afb342c3541a30cc5a00a8454dccf950bb300f Mon Sep 17 00:00:00 2001 From: Nathan Hourt Date: Tue, 2 Mar 2021 11:14:13 -0600 Subject: [PATCH] Fix to dynamic builds FC wasn't always getting the memo that it should build dynamically if Graphene is. --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 0460207a..af731667 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -15,6 +15,7 @@ set( GRAPHENE_BUILD_DYNAMIC_LIBRARIES OFF CACHE BOOL if( GRAPHENE_BUILD_DYNAMIC_LIBRARIES ) set( CMAKE_POSITION_INDEPENDENT_CODE ON ) endif() +set( FC_BUILD_DYNAMIC_LIBRARIES ${GRAPHENE_BUILD_DYNAMIC_LIBRARIES} CACHE BOOL "Whether FC should build as a dynamic library rather than static" ) # http://stackoverflow.com/a/18369825 if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")