Use proper CMake variables for setting compilation flags

This commit is contained in:
valeros
2019-11-21 00:39:05 +02:00
parent 2b9d8dba5f
commit 8675d3fa46

View File

@ -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)