diff --git a/HISTORY.rst b/HISTORY.rst index 9f50569f..acb1f27c 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -24,6 +24,8 @@ PlatformIO 3.0 and `platformio run `__ commands (`issue #850 `_) +* Use C++11 by default for CLion IDE based projects + (`pull #873 `_) ------- diff --git a/examples b/examples index d32be42b..463f8557 160000 --- a/examples +++ b/examples @@ -1 +1 @@ -Subproject commit d32be42b60e88f209d008e5d1578be7b0c823ce9 +Subproject commit 463f855761f0af2657e597f6a3cf1b59daecc3fd diff --git a/platformio/ide/tpls/clion/CMakeListsPrivate.txt.tpl b/platformio/ide/tpls/clion/CMakeListsPrivate.txt.tpl index 658536dd..ca27ad43 100644 --- a/platformio/ide/tpls/clion/CMakeListsPrivate.txt.tpl +++ b/platformio/ide/tpls/clion/CMakeListsPrivate.txt.tpl @@ -5,6 +5,7 @@ SET(CMAKE_C_COMPILER "{{cc_path.replace("\\", "/")}}") SET(CMAKE_CXX_COMPILER "{{cxx_path.replace("\\", "/")}}") SET(CMAKE_CXX_FLAGS_DISTRIBUTION "{{cxx_flags}}") SET(CMAKE_C_FLAGS_DISTRIBUTION "{{cc_flags}}") +set(CMAKE_CXX_STANDARD 11) % for define in defines: add_definitions(-D{{!define}})