kicad/kicad-4.0.7-set-cxx-version.patch
2017-09-03 19:22:49 +03:00

12 lines
619 B
Diff

diff -ur kicad-4.0.7/CMakeLists.txt kicad-4.0.7_patched/CMakeLists.txt
--- kicad-4.0.7/CMakeLists.txt 2017-08-28 17:31:31.000000000 +0300
+++ kicad-4.0.7_patched/CMakeLists.txt 2017-09-03 17:23:14.275405251 +0300
@@ -161,6 +161,8 @@
# subsequently on the command line, such as in pcbnew/github/CMakeLists.txt
set( CMAKE_C_FLAGS "-Wall ${CMAKE_C_FLAGS}" )
set( CMAKE_CXX_FLAGS "-Wall ${CMAKE_CXX_FLAGS}" )
+
+ set( CMAKE_CXX_STANDARD 14 )
# The optimization level is -O1 instead of the usual -O2 level because
# boost::polygon has a function (inflate polygon) broken by the -O2 level