Skip to content

Commit

Permalink
Fix boost __int128 pedantic warning, add boost CMake target
Browse files Browse the repository at this point in the history
Signed-off-by: Andrei Lebedev <[email protected]>
  • Loading branch information
lebdron committed Nov 19, 2017
1 parent 7513fc0 commit 03e0c62
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 13 deletions.
8 changes: 6 additions & 2 deletions cmake/dependencies.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -75,14 +75,18 @@ find_package(rxcpp)
find_package(tbb)

##########################
# boost multiprecision #
# boost #
##########################
find_package(Boost REQUIRED
COMPONENTS
filesystem
system
)

add_library(boost INTERFACE IMPORTED)
set_target_properties(boost PROPERTIES
INTERFACE_SYSTEM_INCLUDE_DIRECTORIES ${Boost_INCLUDE_DIRS}
INTERFACE_LINK_LIBRARIES "${Boost_LIBRARIES}"
)

##########################
# benchmark #
Expand Down
6 changes: 1 addition & 5 deletions iroha-cli/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,7 @@ target_link_libraries(iroha-cli
client
cli-flags_validators
keys_manager
${Boost_SYSTEM_LIBRARY}
${Boost_FILESYSTEM_LIBRARY}
)
target_include_directories(iroha-cli PUBLIC
${Boost_INCLUDE_DIRS}
boost
)

add_install_step_for_bin(iroha-cli)
Expand Down
4 changes: 1 addition & 3 deletions irohad/model/converters/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,5 @@ target_link_libraries(pb_model_converters
schema
cryptography
logger
)
target_include_directories(pb_model_converters PUBLIC
${Boost_INCLUDE_DIRS}
boost
)
4 changes: 1 addition & 3 deletions libs/amount/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,5 @@ add_library(iroha_amount
target_link_libraries(iroha_amount
optional
logger
)
target_include_directories(iroha_amount PUBLIC
${Boost_INCLUDE_DIRS}
boost
)

0 comments on commit 03e0c62

Please sign in to comment.