diff --git a/LuxCore-use-cxx-standard-14.patch b/LuxCore-use-cxx-standard-14.patch index 6777178..e54e807 100644 --- a/LuxCore-use-cxx-standard-14.patch +++ b/LuxCore-use-cxx-standard-14.patch @@ -7,7 +7,7 @@ Index: LuxCore-luxcorerender_v2.6/cmake/PlatformSpecific.cmake IF(CMAKE_COMPILER_IS_GNUCC OR CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID STREQUAL "Clang") # Update if necessary - SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -Wall -Wno-long-long -pedantic") -+ SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++14 -Wall -Wno-long-long -pedantic") ++ SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++17 -Wall -Wno-long-long -pedantic") SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -msse -msse2 -msse3 -mssse3") IF(NOT CYGWIN) SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC") @@ -19,8 +19,8 @@ Index: LuxCore-luxcorerender_v2.6/CMakeLists.txt enable_language(C) enable_language(CXX) -+# Use C++ standard 14 -+set(CMAKE_CXX_STANDARD 14) ++# Use C++ standard 17 ++set(CMAKE_CXX_STANDARD 17) +set(CMAKE_CXX_STANDARD_REQUIRED ON) + if (CMAKE_CONFIGURATION_TYPES) diff --git a/luxcorerender.spec b/luxcorerender.spec index 67c1733..05c2fbf 100644 --- a/luxcorerender.spec +++ b/luxcorerender.spec @@ -21,10 +21,10 @@ Source3: org.%{name}.blendluxcore.metainfo.xml Patch0: LuxCore-boost-python3.patch # Unbundle Patch1: LuxCore-unbundle.patch -# Use C++ Standard 14 +# Use C++ Standard 17 # Changed all uses of the boost.bind placeholders to use the boost::placeholders namespace # https://github.com/LuxCoreRender/LuxCore/issues/449 -Patch2: LuxCore-use-cxx-standard-14.patch +Patch2: LuxCore-use-cxx-standard-17.patch # Use system bcd Patch3: LuxCore-system-bcd.patch # Include atomic header