mirror of
https://github.com/boostorg/static_string.git
synced 2026-01-19 04:42:12 +00:00
Remove an unused dependency on Boost.StaticAssert
This closes issue #73.
This commit is contained in:
@@ -45,7 +45,7 @@ if (BOOST_STATIC_STRING_FIND_PACKAGE_BOOST)
|
||||
find_package(Boost 1.78.0 REQUIRED COMPONENTS container)
|
||||
elseif (BOOST_STATIC_STRING_IS_ROOT)
|
||||
set(BOOST_STATIC_STRING_UNIT_TEST_LIBRARIES core)
|
||||
set(BOOST_INCLUDE_LIBRARIES static_string assert container_hash static_assert throw_exception utility ${BOOST_STATIC_STRING_UNIT_TEST_LIBRARIES})
|
||||
set(BOOST_INCLUDE_LIBRARIES static_string assert container_hash throw_exception utility ${BOOST_STATIC_STRING_UNIT_TEST_LIBRARIES})
|
||||
set(BOOST_EXCLUDE_LIBRARIES static_string)
|
||||
set(CMAKE_FOLDER Dependencies)
|
||||
add_subdirectory(../.. Dependencies/boost EXCLUDE_FROM_ALL)
|
||||
@@ -90,7 +90,6 @@ else ()
|
||||
Boost::assert
|
||||
Boost::container_hash
|
||||
Boost::core
|
||||
Boost::static_assert
|
||||
Boost::throw_exception
|
||||
Boost::utility
|
||||
)
|
||||
|
||||
@@ -139,9 +139,6 @@
|
||||
#ifndef BOOST_STATIC_STRING_THROW
|
||||
#define BOOST_STATIC_STRING_THROW(ex) BOOST_THROW_EXCEPTION(ex)
|
||||
#endif
|
||||
#ifndef BOOST_STATIC_STRING_STATIC_ASSERT
|
||||
#define BOOST_STATIC_STRING_STATIC_ASSERT(cond, msg) BOOST_STATIC_ASSERT_MSG(cond, msg)
|
||||
#endif
|
||||
#ifndef BOOST_STATIC_STRING_ASSERT
|
||||
#define BOOST_STATIC_STRING_ASSERT(cond) BOOST_ASSERT(cond)
|
||||
#endif
|
||||
@@ -149,9 +146,6 @@
|
||||
#ifndef BOOST_STATIC_STRING_THROW
|
||||
#define BOOST_STATIC_STRING_THROW(ex) throw ex
|
||||
#endif
|
||||
#ifndef BOOST_STATIC_STRING_STATIC_ASSERT
|
||||
#define BOOST_STATIC_STRING_STATIC_ASSERT(cond, msg) static_assert(cond, msg)
|
||||
#endif
|
||||
#ifndef BOOST_STATIC_STRING_ASSERT
|
||||
#define BOOST_STATIC_STRING_ASSERT(cond) assert(cond)
|
||||
#endif
|
||||
@@ -161,7 +155,6 @@
|
||||
#include <boost/config.hpp>
|
||||
#include <boost/assert.hpp>
|
||||
#include <boost/container_hash/hash.hpp>
|
||||
#include <boost/static_assert.hpp>
|
||||
#include <boost/utility/string_view.hpp>
|
||||
#include <boost/core/detail/string_view.hpp>
|
||||
#include <boost/throw_exception.hpp>
|
||||
|
||||
Reference in New Issue
Block a user