Skip to content

Commit ef173fb

Browse files
committed
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.
1 parent bbac580 commit ef173fb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

qrenderdoc/Code/pyrenderdoc/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Build as C++14 for the python bindings template-fu
22
if (CMAKE_VERSION VERSION_LESS "3.1")
3-
set (CMAKE_CXX_FLAGS "--std=c++14 ${CMAKE_CXX_FLAGS}")
3+
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} --std=c++14")
44
else ()
55
set (CMAKE_CXX_STANDARD 14)
66
endif ()

0 commit comments

Comments
 (0)