Make all compile definitions target-specific

This commit is contained in:
Mohammad Nejati
2024-11-25 07:54:21 +00:00
committed by Mohammad Nejati
parent ce3f2196c4
commit c00cca32a4
2 changed files with 4 additions and 4 deletions

View File

@ -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")

View File

@ -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)