Merge pull request #5086 from bartoszek/fix_build_linux

Fix linux build: undefined std:string_view
This commit is contained in:
Chris Hennes
2021-10-03 15:59:44 -05:00
committed by GitHub
3 changed files with 4 additions and 0 deletions

View File

@@ -399,6 +399,8 @@ endif ()
add_library(Mesh SHARED ${Core_SRCS} ${WildMagic4_SRCS} ${Mesh_SRCS})
target_link_libraries(Mesh ${Mesh_LIBS})
set_target_properties(Mesh PROPERTIES CXX_STANDARD_REQUIRED ON)
set_target_properties(Mesh PROPERTIES CXX_STANDARD 17)
SET_BIN_DIR(Mesh Mesh /Mod/Mesh)

View File

@@ -46,6 +46,7 @@
#include <sstream>
#include <iomanip>
#include <algorithm>
#include <string_view>
#include <boost/regex.hpp>
#include <boost/algorithm/string.hpp>
#include <boost/lexical_cast.hpp>

View File

@@ -43,6 +43,7 @@ SOFTWARE.
#include <memory> // unique_ptr
#include <numeric> // accumulate
#include <string> // string, stoi, to_string
#include <string_view> // string_view
#include <utility> // declval, forward, move, pair, swap
#include <vector> // vector