Use C++11 by default for CLion IDE based projects // Resolve #873

This commit is contained in:
Ivan Kravets
2017-01-12 20:07:28 +02:00
parent 87f3cbdda7
commit fb2f1d3553
3 changed files with 4 additions and 1 deletions

View File

@ -24,6 +24,8 @@ PlatformIO 3.0
and `platformio run <http://docs.platformio.org/page/userguide/cmd_run.html>`__ and `platformio run <http://docs.platformio.org/page/userguide/cmd_run.html>`__
commands commands
(`issue #850 <https://github.com/platformio/platformio-core/issues/850>`_) (`issue #850 <https://github.com/platformio/platformio-core/issues/850>`_)
* Use C++11 by default for CLion IDE based projects
(`pull #873 <https://github.com/platformio/platformio-core/pull/873>`_)
------- -------

View File

@ -5,6 +5,7 @@ SET(CMAKE_C_COMPILER "{{cc_path.replace("\\", "/")}}")
SET(CMAKE_CXX_COMPILER "{{cxx_path.replace("\\", "/")}}") SET(CMAKE_CXX_COMPILER "{{cxx_path.replace("\\", "/")}}")
SET(CMAKE_CXX_FLAGS_DISTRIBUTION "{{cxx_flags}}") SET(CMAKE_CXX_FLAGS_DISTRIBUTION "{{cxx_flags}}")
SET(CMAKE_C_FLAGS_DISTRIBUTION "{{cc_flags}}") SET(CMAKE_C_FLAGS_DISTRIBUTION "{{cc_flags}}")
set(CMAKE_CXX_STANDARD 11)
% for define in defines: % for define in defines:
add_definitions(-D{{!define}}) add_definitions(-D{{!define}})