Fix dynamic build
In some environments, dynamic linking fails if Boost is static
This commit is contained in:
parent
95afb342c3
commit
0d18523d8f
1 changed files with 6 additions and 1 deletions
|
|
@ -59,7 +59,12 @@ LIST(APPEND BOOST_COMPONENTS thread
|
||||||
unit_test_framework
|
unit_test_framework
|
||||||
context
|
context
|
||||||
locale)
|
locale)
|
||||||
SET( Boost_USE_STATIC_LIBS ON CACHE STRING "ON or OFF" )
|
|
||||||
|
IF( ${GRAPHENE_BUILD_DYNAMIC_LIBRARIES} )
|
||||||
|
SET( Boost_USE_STATIC_LIBS OFF CACHE STRING "ON or OFF" )
|
||||||
|
ELSE()
|
||||||
|
SET( Boost_USE_STATIC_LIBS ON CACHE STRING "ON or OFF" )
|
||||||
|
ENDIF()
|
||||||
|
|
||||||
IF( WIN32 )
|
IF( WIN32 )
|
||||||
SET(BOOST_ROOT $ENV{BOOST_ROOT})
|
SET(BOOST_ROOT $ENV{BOOST_ROOT})
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue