Fix random new CI failure by setting CMAKE_CXX_STANDARD_REQUIRED

This commit is contained in:
baldurk
2021-11-25 12:10:52 +00:00
parent eb18acf224
commit 33751470f2
+2 -1
View File
@@ -1,8 +1,9 @@
# Build as C++14 for the python bindings template-fu
if (CMAKE_VERSION VERSION_LESS "3.1")
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} --std=c++14")
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++14")
else ()
set (CMAKE_CXX_STANDARD 14)
set (CMAKE_CXX_STANDARD_REQUIRED ON)
endif ()
# include paths for qrenderdoc, the internal renderdoc API, and Python