aboutsummaryrefslogtreecommitdiffstats
path: root/CAN-config-generator
diff options
context:
space:
mode:
authorRomain Forlot <romain.forlot@iot.bzh>2017-06-07 01:28:21 +0200
committerRomain Forlot <romain.forlot@iot.bzh>2017-06-07 01:28:21 +0200
commit89b22975575deba2aee277ea03867238f963c3aa (patch)
tree1bb8fc857cebe56241a05c53d01d35ae1d092213 /CAN-config-generator
parent81fae31aa6881f6d0630da17d5e174d221c6020c (diff)
Fix: c++11 detected and not applied from config
Change-Id: Iedf1f88e142a3f579ada3794b1f0f8813105d880 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'CAN-config-generator')
-rw-r--r--CAN-config-generator/etc/config.cmake4
1 files changed, 2 insertions, 2 deletions
diff --git a/CAN-config-generator/etc/config.cmake b/CAN-config-generator/etc/config.cmake
index 1819daab..50cb3460 100644
--- a/CAN-config-generator/etc/config.cmake
+++ b/CAN-config-generator/etc/config.cmake
@@ -43,8 +43,8 @@ add_compile_options(-D_REENTRANT)
add_compile_options(-DPB_FIELD_16BIT)
# LANG Specific compile flags set for all build types
-set(CMAKE_C_FLAGS "")
-set(CMAKE_CXX_FLAGS "-std=c++11")
+set(CMAKE_C_FLAGS "" CACHE STRING "C compile flags")
+set(CMAKE_CXX_FLAGS "-std=c++11" CACHE STRING "C++ compile flags")
# Print a helper message when every thing is finished
setc(CLOSING_MESSAGE "Test with: ./can-config-generator -m ../tests/basic.json -o configuration-generated.cpp")