mirror of
https://github.com/boostorg/beast.git
synced 2025-08-01 22:04:34 +02:00
Add Beast_ENABLE_HANDLER_TRACKING cmake option
This commit is contained in:
@@ -45,6 +45,7 @@ project (Beast VERSION 300)
|
|||||||
set_property (GLOBAL PROPERTY USE_FOLDERS ON)
|
set_property (GLOBAL PROPERTY USE_FOLDERS ON)
|
||||||
option (Beast_BUILD_EXAMPLES "Build examples" ON)
|
option (Beast_BUILD_EXAMPLES "Build examples" ON)
|
||||||
option (Beast_BUILD_TESTS "Build tests" ON)
|
option (Beast_BUILD_TESTS "Build tests" ON)
|
||||||
|
option (Beast_ENABLE_HANDLER_TRACKING "Define BOOST_ASIO_ENABLE_HANDLER_TRACKING when building libraries" OFF)
|
||||||
|
|
||||||
if (MSVC)
|
if (MSVC)
|
||||||
set (CMAKE_VERBOSE_MAKEFILE FALSE)
|
set (CMAKE_VERBOSE_MAKEFILE FALSE)
|
||||||
@@ -196,6 +197,10 @@ add_library (
|
|||||||
lib-asio STATIC
|
lib-asio STATIC
|
||||||
test/lib_asio.cpp
|
test/lib_asio.cpp
|
||||||
)
|
)
|
||||||
|
if(Beast_ENABLE_HANDLER_TRACKING)
|
||||||
|
target_compile_definitions(lib-asio
|
||||||
|
PUBLIC BOOST_ASIO_ENABLE_HANDLER_TRACKING=1)
|
||||||
|
endif()
|
||||||
|
|
||||||
set_property(TARGET lib-asio PROPERTY FOLDER "static-libs")
|
set_property(TARGET lib-asio PROPERTY FOLDER "static-libs")
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user