From 37552a81fc2aa2525757dd21b2e4d98d98dca57d Mon Sep 17 00:00:00 2001 From: Ivan Kravets Date: Sat, 17 Sep 2016 16:55:42 +0300 Subject: [PATCH] Fix Project Generator for CLion IDE using Windows OS // Resolve #785 --- HISTORY.rst | 5 ++++- platformio/ide/tpls/clion/CMakeListsPrivate.txt.tpl | 4 ++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/HISTORY.rst b/HISTORY.rst index f722dea9..f3ba1727 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -12,8 +12,11 @@ PlatformIO 3.0 `platformio init `__ command * Deprecated ``lib_force`` option, please use `lib_deps `__ instead -* Fixed SSL Server-Name-Indication for Python < 2.7.9 * Return valid exit code from ``plaformio test`` command +* Fixed Project Generator for CLion IDE using Windows OS + (`issue #785 `_) +* Fixed SSL Server-Name-Indication for Python < 2.7.9 + (`issue #774 `_) ------- diff --git a/platformio/ide/tpls/clion/CMakeListsPrivate.txt.tpl b/platformio/ide/tpls/clion/CMakeListsPrivate.txt.tpl index 40414aa8..00556e3b 100644 --- a/platformio/ide/tpls/clion/CMakeListsPrivate.txt.tpl +++ b/platformio/ide/tpls/clion/CMakeListsPrivate.txt.tpl @@ -1,8 +1,8 @@ set(ENV{PATH} "{{env_path}}") set(PLATFORMIO_CMD "{{platformio_path}}") -SET(CMAKE_C_COMPILER "{{cc_path}}") -SET(CMAKE_CXX_COMPILER "{{cxx_path}}") +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}}")