Support custom CMake configuration for CLion IDE using `CMakeListsUser.txt` file

This commit is contained in:
Ivan Kravets
2019-05-25 20:46:56 +03:00
parent 7b2c1f27fc
commit 7beb332b31
2 changed files with 12 additions and 0 deletions

View File

@ -41,6 +41,7 @@ PlatformIO 3.0
3.6.8 (2019-??-??)
~~~~~~~~~~~~~~~~~~
* Support custom CMake configuration for CLion IDE using ``CMakeListsUser.txt`` file
* Fixed "systemd-udevd" warnings in `99-platformio-udev.rules <http://docs.platformio.org/en/latest/faq.html#platformio-udev-rules>`__ (`issue #2442 <https://github.com/platformio/platformio-core/issues/2442>`_)
* Fixed an issue when ``-U`` in ``build_flags`` does not remove macro previously defined via ``-D`` flag (`issue #2508 <https://github.com/platformio/platformio-core/issues/2508>`_)
* Fixed an issue for Project Generator when include path search order is inconsistent to what passed to the compiler (`issue #2509 <https://github.com/platformio/platformio-core/issues/2509>`_)

View File

@ -1,8 +1,19 @@
# !!! WARNING !!! AUTO-GENERATED FILE, PLEASE DO NOT MODIFY IT AND USE
# https://docs.platformio.org/page/projectconf/section_env_build.html#build-flags
#
# If you need to override existing CMake configuration or add extra,
# please create `CMakeListsUser.txt` in the root of project.
# The `CMakeListsUser.txt` will not be overwritten by PlatformIO.
cmake_minimum_required(VERSION 3.2)
project({{project_name}})
include(CMakeListsPrivate.txt)
if(EXISTS CMakeListsUser.txt)
include(CMakeListsUser.txt)
endif()
add_custom_target(
PLATFORMIO_BUILD ALL
COMMAND ${PLATFORMIO_CMD} -f -c clion run