mirror of
https://github.com/boostorg/geometry.git
synced 2026-07-21 13:23:38 +00:00
Move cxx14 checks from build.jam to buildable targets to address #1460
This commit is contained in:
@@ -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
|
||||
;
|
||||
|
||||
|
||||
@@ -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 ;
|
||||
|
||||
@@ -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,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
@@ -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 ;
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user