From cdca0ee6de6ffa1f5e7cdbac0d229bd4c3c4cdbb Mon Sep 17 00:00:00 2001 From: baldurk Date: Thu, 18 Jan 2018 16:24:55 +0000 Subject: [PATCH] Append C++14 standard flag instead of prepending. * This stops it from being overridden by the global --std=c++11 in the root CMakeLists.txt which ends up after it in the command line. --- qrenderdoc/Code/pyrenderdoc/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qrenderdoc/Code/pyrenderdoc/CMakeLists.txt b/qrenderdoc/Code/pyrenderdoc/CMakeLists.txt index 33ec09532..8ba8c950b 100644 --- a/qrenderdoc/Code/pyrenderdoc/CMakeLists.txt +++ b/qrenderdoc/Code/pyrenderdoc/CMakeLists.txt @@ -1,6 +1,6 @@ # Build as C++14 for the python bindings template-fu if (CMAKE_VERSION VERSION_LESS "3.1") - set (CMAKE_CXX_FLAGS "--std=c++14 ${CMAKE_CXX_FLAGS}") + set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} --std=c++14") else () set (CMAKE_CXX_STANDARD 14) endif ()