Skip to content

Commit

Permalink
Merge pull request #96 from hannesbraun/cmake-boost
Browse files Browse the repository at this point in the history
CMake: improve linking against Boost
  • Loading branch information
hidehisaakiyama authored Oct 29, 2022
2 parents b8bf58f + a161b46 commit 97ce96d
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 17 deletions.
2 changes: 0 additions & 2 deletions rcss/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@ target_include_directories(RCSSBase

target_link_libraries(RCSSBase
INTERFACE
Boost::boost
Boost::system
Boost::filesystem
)

Expand Down
2 changes: 2 additions & 0 deletions rcss/conf/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ add_library(RCSS::ConfParser ALIAS RCSSConfParser)

target_link_libraries(RCSSConfParser
PUBLIC
Boost::filesystem
PRIVATE
Boost::boost
)

Expand Down
5 changes: 0 additions & 5 deletions rcss/gzip/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,6 @@ add_library(RCSSGZ SHARED
)
add_library(RCSS::GZ ALIAS RCSSGZ)

target_link_libraries(RCSSGZ
PUBLIC
Boost::boost
)

target_compile_definitions(RCSSGZ
PUBLIC
HAVE_CONFIG_H
Expand Down
5 changes: 0 additions & 5 deletions rcss/net/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,6 @@ add_library(RCSSNet SHARED
)
add_library(RCSS::Net ALIAS RCSSNet)

target_link_libraries(RCSSNet
PUBLIC
Boost::boost
)

target_compile_definitions(RCSSNet
PUBLIC
HAVE_CONFIG_H
Expand Down
5 changes: 0 additions & 5 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,7 @@ target_link_libraries(RCSSServer
RCSS::ConfParser
RCSS::Net
RCSS::GZ
Boost::boost
Boost::filesystem
Boost::system
ZLIB::ZLIB
)

Expand Down Expand Up @@ -123,9 +121,6 @@ target_link_libraries(RCSSClient
PRIVATE
RCSS::Net
RCSS::GZ
Boost::boost
Boost::filesystem
Boost::system
ZLIB::ZLIB
)

Expand Down

0 comments on commit 97ce96d

Please sign in to comment.