mirror of
https://github.com/boostorg/beast.git
synced 2025-06-25 03:51:36 +02:00
Make all compile definitions target-specific
This commit is contained in:
committed by
Mohammad Nejati
parent
ce3f2196c4
commit
c00cca32a4
@ -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")
|
||||
|
||||
|
@ -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)
|
||||
|
Reference in New Issue
Block a user