aboutsummaryrefslogtreecommitdiff
path: root/dep/boost
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2022-11-05 01:08:17 +0100
committerShauren <shauren.trinity@gmail.com>2022-11-05 01:08:17 +0100
commitc9f1606b760d724851c12a6bc13405a3ec03cc0c (patch)
treee0adff73a6531ff337ff3ca28542b946385bd408 /dep/boost
parenta761ebd6a612af4158efabcd1b729379173f5578 (diff)
Build: Cleanup boost CMakeLists from pre-c++11 flag checks
Diffstat (limited to 'dep/boost')
-rw-r--r--dep/boost/CMakeLists.txt26
1 files changed, 0 insertions, 26 deletions
diff --git a/dep/boost/CMakeLists.txt b/dep/boost/CMakeLists.txt
index fc257847f5d..32bde0280f4 100644
--- a/dep/boost/CMakeLists.txt
+++ b/dep/boost/CMakeLists.txt
@@ -12,8 +12,6 @@ if(WIN32)
set(BOOST_DEBUG ON)
if(DEFINED ENV{BOOST_ROOT})
set(BOOST_ROOT $ENV{BOOST_ROOT})
- list(APPEND BOOST_LIBRARYDIR
- ${BOOST_ROOT}/lib${PLATFORM}-msvc-14.2 )
endif()
set(Boost_USE_STATIC_LIBS ON)
@@ -38,20 +36,6 @@ if(NOT Boost_FOUND)
endif()
endif()
-# Find if Boost was compiled in C++03 mode because it requires -DBOOST_NO_CXX11_SCOPED_ENUMS
-
-set(CMAKE_REQUIRED_INCLUDES ${Boost_INCLUDE_DIR})
-set(CMAKE_REQUIRED_LIBRARIES ${Boost_SYSTEM_LIBRARY} ${Boost_FILESYSTEM_LIBRARY} ${Boost_IOSTREAMS_LIBRARY})
-set(CMAKE_REQUIRED_FLAGS "-std=c++11")
-check_cxx_source_compiles("
- #include <boost/filesystem/path.hpp>
- #include <boost/filesystem/operations.hpp>
- int main() { boost::filesystem::copy_file(boost::filesystem::path(), boost::filesystem::path()); }"
-boost_filesystem_copy_links_without_NO_SCOPED_ENUM)
-unset(CMAKE_REQUIRED_INCLUDES)
-unset(CMAKE_REQUIRED_LIBRARIES)
-unset(CMAKE_REQUIRED_FLAGS)
-
add_library(boost INTERFACE)
target_link_libraries(boost
@@ -70,16 +54,6 @@ target_compile_definitions(boost
-DBOOST_BIND_NO_PLACEHOLDERS
-DBOOST_SYSTEM_USE_UTF8)
-if (NOT boost_filesystem_copy_links_without_NO_SCOPED_ENUM)
- target_compile_definitions(boost
- INTERFACE
- -DBOOST_NO_CXX11_SCOPED_ENUMS)
-endif()
-
-target_compile_definitions(boost
- INTERFACE
- -DTC_HAS_BROKEN_WSTRING_REGEX)
-
if (WITH_BOOST_STACKTRACE AND NOT WIN32)
message("*** libbacktrace will be linked")