cmake: Fix 'missing-DSO' error when linking against boost_filesystem

This commit is contained in:
Ferdinand Thiessen 2017-08-08 15:25:39 +02:00 committed by Charles Dang
parent 3ecb883bc1
commit 789588d11e
2 changed files with 3 additions and 2 deletions

View file

@ -598,7 +598,7 @@ if(ENABLE_GAME)
endif(ENABLE_NOTIFICATIONS)
if(ENABLE_BOOST_FILESYSTEM AND NOT ENABLE_PANDORA)
find_package( Boost 1.44 REQUIRED COMPONENTS filesystem )
find_package( Boost 1.44 REQUIRED COMPONENTS filesystem system)
find_package( Boost 1.48 REQUIRED COMPONENTS locale )
endif(ENABLE_BOOST_FILESYSTEM AND NOT ENABLE_PANDORA)
@ -606,7 +606,7 @@ endif(ENABLE_GAME)
if(ENABLE_SERVER)
if(ENABLE_BOOST_FILESYSTEM AND NOT ENABLE_PANDORA)
find_package( Boost 1.44 REQUIRED COMPONENTS filesystem )
find_package( Boost 1.44 REQUIRED COMPONENTS filesystem system)
find_package( Boost 1.48 REQUIRED COMPONENTS locale )
endif(ENABLE_BOOST_FILESYSTEM AND NOT ENABLE_PANDORA)
endif(ENABLE_SERVER)

View file

@ -87,6 +87,7 @@ if(ENABLE_BOOST_FILESYSTEM AND NOT ENABLE_PANDORA)
set(common-external-libs
${common-external-libs}
${Boost_FILESYSTEM_LIBRARY}
${Boost_SYSTEM_LIBRARY}
${Boost_LOCALE_LIBRARY}
)
else(ENABLE_BOOST_FILESYSTEM AND NOT ENABLE_PANDORA)