aboutsummaryrefslogtreecommitdiff
path: root/dep
diff options
context:
space:
mode:
Diffstat (limited to 'dep')
-rw-r--r--dep/boost/CMakeLists.txt19
1 files changed, 4 insertions, 15 deletions
diff --git a/dep/boost/CMakeLists.txt b/dep/boost/CMakeLists.txt
index e5260c862ff..9d78248d66b 100644
--- a/dep/boost/CMakeLists.txt
+++ b/dep/boost/CMakeLists.txt
@@ -37,11 +37,6 @@ endif()
include (CheckCXXSourceCompiles)
-check_cxx_source_compiles("
- #include <regex>
- int main() { std::wregex r(L\".*\"); }"
- STD_HAS_WORKING_WREGEX)
-
if (WIN32)
# On windows the requirements are higher according to the wiki.
set(BOOST_REQUIRED_VERSION 1.66)
@@ -49,11 +44,7 @@ else()
set(BOOST_REQUIRED_VERSION 1.58)
endif()
-if (STD_HAS_WORKING_WREGEX)
- find_package(Boost ${BOOST_REQUIRED_VERSION} REQUIRED system filesystem thread program_options iostreams)
-else()
- find_package(Boost ${BOOST_REQUIRED_VERSION} REQUIRED system filesystem thread program_options iostreams regex)
-endif()
+find_package(Boost ${BOOST_REQUIRED_VERSION} REQUIRED system filesystem thread program_options iostreams regex)
# Find if Boost was compiled in C++03 mode because it requires -DBOOST_NO_CXX11_SCOPED_ENUMS
@@ -98,8 +89,6 @@ if (NOT boost_filesystem_copy_links_without_NO_SCOPED_ENUM)
-DBOOST_NO_CXX11_SCOPED_ENUMS)
endif()
-if (NOT STD_HAS_WORKING_WREGEX)
- target_compile_definitions(boost
- INTERFACE
- -DTC_HAS_BROKEN_WSTRING_REGEX)
-endif()
+target_compile_definitions(boost
+ INTERFACE
+ -DTC_HAS_BROKEN_WSTRING_REGEX)