2
0
mirror of https://github.com/boostorg/leaf.git synced 2026-01-19 04:22:08 +00:00

Merge pull request #73 from grafikrobot/modular

Add support for modular build structure.
This commit is contained in:
Peter Dimov
2025-05-02 19:13:41 +03:00
committed by GitHub
2 changed files with 19 additions and 1 deletions

17
build.jam Normal file
View File

@@ -0,0 +1,17 @@
# Copyright René Ferdinand Rivera Morell 2023-2024
# Distributed under the Boost Software License, Version 1.0.
# (See accompanying file LICENSE_1_0.txt or copy at
# http://www.boost.org/LICENSE_1_0.txt)
require-b2 5.2 ;
project /boost/leaf
;
explicit
[ alias boost_leaf : : : : <include>include ]
[ alias all : boost_leaf test ]
;
call-if : boost-library leaf
;

View File

@@ -22,6 +22,8 @@ project
<cxxstd>11
<threading>multi
: requirements
<library>/boost/config//boost_config
<use>/boost/exception//boost_exception
<define>BOOST_LEAF_BOOST_AVAILABLE
<target-os>windows:<define>_CRT_SECURE_NO_WARNINGS
<threading>single:<define>BOOST_LEAF_NO_THREADS
@@ -29,7 +31,6 @@ project
<toolset>clang:<cxxflags>"-Wno-unused-variable -Wno-delete-non-virtual-dtor -Wno-non-virtual-dtor -Wno-dangling-else"
<toolset>darwin:<cxxflags>"-Wno-unused-variable -Wno-delete-non-virtual-dtor -Wno-non-virtual-dtor -Wno-delete-non-abstract-non-virtual-dtor -Wno-dangling-else"
<toolset>msvc:<cxxflags>"-wd 4267 -wd 4996 -wd 4244"
<include>../../..
;
compile _hpp_common_test.cpp ;