Fix to dynamic builds

FC wasn't always getting the memo that it should build dynamically
if Graphene is.
This commit is contained in:
Nathan Hourt 2021-03-02 11:14:13 -06:00 committed by Michel Santos
parent e168d2d830
commit 95afb342c3

View file

@ -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")