File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -149,7 +149,6 @@ source_group("" FILES "include/boost/beast2.hpp" "build/Jamfile")
149149source_group (TREE ${CMAKE_CURRENT_SOURCE_DIR} /include /boost/beast2 PREFIX "include" FILES ${BOOST_BEAST2_HEADERS} )
150150source_group (TREE ${CMAKE_CURRENT_SOURCE_DIR} /src PREFIX "src" FILES ${BOOST_BEAST2_SOURCES} )
151151
152-
153152function (boost_beast2_setup_properties target )
154153 target_compile_features (${target} PUBLIC cxx_std_20)
155154 target_include_directories (${target}
@@ -174,9 +173,10 @@ if (BOOST_BEAST2_MRDOCS_BUILD)
174173 file (WRITE "${CMAKE_CURRENT_BINARY_DIR} /mrdocs.cpp" "#include <boost/beast2.hpp>\n " )
175174 add_library (boost_beast2_mrdocs "${CMAKE_CURRENT_BINARY_DIR} /mrdocs.cpp" )
176175 boost_beast2_setup_properties(boost_beast2_mrdocs)
177- boost_beast2_setup_properties(boost_beast2_mrdocs PUBLIC BOOST_BEAST2_MRDOCS)
176+ target_compile_definitions (boost_beast2_mrdocs PUBLIC BOOST_BEAST2_MRDOCS)
177+ set_target_properties (boost_beast2_mrdocs PROPERTIES EXPORT_COMPILE_COMMANDS ON )
178178 return ()
179- endif ()
179+ endif ()
180180
181181add_library (boost_beast2 include /boost/beast2.hpp build /Jamfile ${BOOST_BEAST2_HEADERS} ${BOOST_BEAST2_SOURCES} )
182182add_library (Boost::beast2 ALIAS boost_beast2)
Original file line number Diff line number Diff line change @@ -33,4 +33,4 @@ use-system-stdlib: true
3333warn-unnamed-param : true
3434warn-if-undoc-enum-val : false
3535
36- cmake : ' -DCMAKE_CXX_STANDARD=20 -DBOOST_BEAST2_MRDOCS_BUILD=ON -DBOOST_BEAST2_BUILD_TESTS=OFF -DBOOST_BEAST2_BUILD_EXAMPLES =OFF'
36+ cmake : ' -DCMAKE_CXX_STANDARD=20 -DBOOST_BEAST2_MRDOCS_BUILD=ON -DCMAKE_EXPORT_COMPILE_COMMANDS =OFF'
You can’t perform that action at this time.
0 commit comments