From cf98750f4bbb0720f02dacf755eb76a1e32ef357 Mon Sep 17 00:00:00 2001 From: Ivan Kravets Date: Mon, 16 Nov 2015 23:17:23 +0200 Subject: [PATCH] Fix project generator for CLion IDE under Windows OS with invalid path to executable // Resolve #326 --- HISTORY.rst | 3 +++ platformio/__init__.py | 2 +- platformio/ide/tpls/clion/CMakeLists.txt.tpl | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/HISTORY.rst b/HISTORY.rst index d8a62366..40b52b6e 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -27,6 +27,9 @@ PlatformIO 2.0 (`issue #316 `_) * Fixed installation on Mac OS X El Capitan (`issue #312 `_) +* Fixed project generator for CLion IDE under Windows OS with invalid path to + executable + (`issue #326 `_) 2.3.4 (2015-10-13) ~~~~~~~~~~~~~~~~~~ diff --git a/platformio/__init__.py b/platformio/__init__.py index 9ccfe250..ebf084d0 100644 --- a/platformio/__init__.py +++ b/platformio/__init__.py @@ -1,7 +1,7 @@ # Copyright (C) Ivan Kravets # See LICENSE for details. -VERSION = (2, 4, "0.dev2") +VERSION = (2, 4, "0.dev3") __version__ = ".".join([str(s) for s in VERSION]) __title__ = "platformio" diff --git a/platformio/ide/tpls/clion/CMakeLists.txt.tpl b/platformio/ide/tpls/clion/CMakeLists.txt.tpl index 680805a1..b45e0eed 100644 --- a/platformio/ide/tpls/clion/CMakeLists.txt.tpl +++ b/platformio/ide/tpls/clion/CMakeLists.txt.tpl @@ -35,7 +35,7 @@ add_custom_target( ) % if main_src_file: -add_executable({{project_name}} {{main_src_file}}) +add_executable({{project_name}} {{main_src_file.replace("\\", "/")}}) % else: # # To enable code auto-completion, please specify path