From 8675d3fa4684830c91f85e75ff257c28b79a01d1 Mon Sep 17 00:00:00 2001 From: valeros Date: Thu, 21 Nov 2019 00:39:05 +0200 Subject: [PATCH] Use proper CMake variables for setting compilation flags --- platformio/ide/tpls/clion/CMakeListsPrivate.txt.tpl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/platformio/ide/tpls/clion/CMakeListsPrivate.txt.tpl b/platformio/ide/tpls/clion/CMakeListsPrivate.txt.tpl index e4bc39e2..daf5f2bc 100644 --- a/platformio/ide/tpls/clion/CMakeListsPrivate.txt.tpl +++ b/platformio/ide/tpls/clion/CMakeListsPrivate.txt.tpl @@ -37,8 +37,8 @@ set(SVD_PATH "{{ _normalize_path(svd_path) }}") SET(CMAKE_C_COMPILER "{{ _normalize_path(cc_path) }}") SET(CMAKE_CXX_COMPILER "{{ _normalize_path(cxx_path) }}") -SET(CMAKE_CXX_FLAGS_DISTRIBUTION "{{cxx_flags}}") -SET(CMAKE_C_FLAGS_DISTRIBUTION "{{cc_flags}}") +SET(CMAKE_CXX_FLAGS "{{cxx_flags}}") +SET(CMAKE_C_FLAGS "{{cc_flags}}") % STD_RE = re.compile(r"\-std=[a-z\+]+(\d+)") % cc_stds = STD_RE.findall(cc_flags)