Skip to content

Commit

Permalink
cmake: Fix 'missing-DSO' error when linking against boost_filesystem
Browse files Browse the repository at this point in the history
  • Loading branch information
susnux authored and Vultraz committed Aug 9, 2017
1 parent 3ecb883 commit 789588d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Expand Up @@ -598,15 +598,15 @@ 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)

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)
Expand Down
1 change: 1 addition & 0 deletions src/CMakeLists.txt
Expand Up @@ -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)
Expand Down

0 comments on commit 789588d

Please sign in to comment.