Skip to content

Commit

Permalink
Make all compile definitions target-specific
Browse files Browse the repository at this point in the history
  • Loading branch information
ashtum committed Nov 25, 2024
1 parent ce3f219 commit c00cca3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
5 changes: 4 additions & 1 deletion test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,10 @@ set_target_properties(lib-asio-ssl PROPERTIES FOLDER "static-libs")
# lib-beast
add_library(lib-beast STATIC lib_beast.cpp)
source_group("" FILES lib_beast.cpp)
target_compile_definitions(lib-beast PUBLIC BOOST_BEAST_SEPARATE_COMPILATION)
target_compile_definitions(lib-beast PUBLIC
BOOST_BEAST_SEPARATE_COMPILATION
BOOST_BEAST_ALLOW_DEPRECATED
BOOST_BEAST_TESTS)
target_link_libraries(lib-beast PUBLIC Boost::beast lib-asio)
set_target_properties(lib-beast PROPERTIES FOLDER "static-libs")

Expand Down
3 changes: 0 additions & 3 deletions test/beast/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@
# Official repository: https://github.com/boostorg/beast
#

add_definitions(-DBOOST_BEAST_ALLOW_DEPRECATED)
add_definitions(-DBOOST_BEAST_TESTS) # For buffers_cat

add_subdirectory(_experimental)
add_subdirectory(core)
add_subdirectory(http)
Expand Down

0 comments on commit c00cca3

Please sign in to comment.