From ef173fb96f4f377b4ebb6400a387a8093a033b45 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 151094546..57d060f76 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 ()