mirror of
https://github.com/boostorg/log.git
synced 2026-01-19 16:32:09 +00:00
Boost.Log supports compilers that do not qualify as C++11 compilers for Boost.Regex, even if they are compiling in C++11 mode. In that case, we still need to link with Boost.Regex v4 prebuilt library. For more recent compilers, Boost.Regex v5 is used, and that is a header-only library. This commit removes linking with Boost.Regex when this is detected at configure time. Note that only Boost.Build is updated. CMake doesn't need to be updated since even header-only libraries need to be listed as dependencies. Closes https://github.com/boostorg/log/pull/219.
18 lines
408 B
C++
18 lines
408 B
C++
/*
|
|
* Copyright Andrey Semashev 2023.
|
|
* 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)
|
|
*/
|
|
|
|
#include <boost/regex/config.hpp>
|
|
|
|
#if defined(BOOST_REGEX_CXX03)
|
|
#error Boost.Log: Boost.Regex is in C++03 mode and is not header-only
|
|
#endif
|
|
|
|
int main(int, char*[])
|
|
{
|
|
return 0;
|
|
}
|