Move cxx14 checks from build.jam to buildable targets to address #1460

This commit is contained in:
Tinko Sebastian Bartels
2026-06-28 16:59:25 +08:00
parent 6faa665ecf
commit 70b4b191d3
6 changed files with 34 additions and 16 deletions
+2 -15
View File
@@ -5,9 +5,6 @@
require-b2 5.2 ;
import-search /boost/config/checks ;
import config : requires ;
constant boost_dependencies :
/boost/algorithm//boost_algorithm
/boost/any//boost_any
@@ -41,22 +38,12 @@ constant boost_dependencies :
/boost/variant//boost_variant
/boost/variant2//boost_variant2 ;
project /boost/geometry
: common-requirements
<include>include
: requirements
[ requires
cxx14_constexpr
cxx14_return_type_deduction
]
<toolset>msvc:<asynch-exceptions>on
;
project /boost/geometry ;
explicit
[ alias boost_geometry : : : : <library>$(boost_dependencies) ]
[ alias boost_geometry : : : : <include>include <library>$(boost_dependencies) ]
[ alias all : boost_geometry test example doc/src/examples index extensions ]
;
call-if : boost-library geometry
;
+8
View File
@@ -9,9 +9,17 @@
# http://www.boost.org/LICENSE_1_0.txt)
import-search /boost/config/checks ;
import config : requires ;
project boost-geometry-doc-src-example
: requirements
<library>/boost/geometry//boost_geometry
<cxxstd>14
[ requires
cxx14_constexpr
cxx14_return_type_deduction
]
;
exe quick_start : quick_start.cpp ;
+8
View File
@@ -10,10 +10,18 @@
# http://www.boost.org/LICENSE_1_0.txt)
import-search /boost/config/checks ;
import config : requires ;
project boost-geometry-example
: requirements
<library>/boost/geometry//boost_geometry
<library>/boost/foreach//boost_foreach
<cxxstd>14
[ requires
cxx14_constexpr
cxx14_return_type_deduction
]
;
exe 01_point_example : 01_point_example.cpp ;
@@ -11,6 +11,7 @@
#define BOOST_GEOMETRY_PROJECTIONS_CODE_HPP
#include <array>
#include <cmath>
#include <boost/geometry/srs/projections/dpar.hpp>
+8
View File
@@ -8,10 +8,18 @@
# Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
# http://www.boost.org/LICENSE_1_0.txt)
import-search /boost/config/checks ;
import config : requires ;
project boost-geometry-index
:
requirements
<library>/boost/geometry//boost_geometry
<cxxstd>14
[ requires
cxx14_constexpr
cxx14_return_type_deduction
]
<toolset>msvc:<asynch-exceptions>on
;
+7 -1
View File
@@ -14,11 +14,18 @@
import os ;
import testing ;
import-search /boost/config/checks ;
import config : requires ;
project boost-geometry-test
:
requirements
<library>/boost/geometry//boost_geometry
<cxxstd>14
[ requires
cxx14_constexpr
cxx14_return_type_deduction
]
<include>.
<toolset>msvc:<asynch-exceptions>on
<toolset>msvc:<cxxflags>/bigobj
@@ -55,4 +62,3 @@ build-project util ;
build-project views ;
}