aboutsummaryrefslogtreecommitdiffstats
path: root/conf.d/cmake/config.cmake
diff options
context:
space:
mode:
authorRonan Le Martret <ronan.lemartret@iot.bzh>2017-06-29 00:35:21 +0200
committerRonan Le Martret <ronan.lemartret@iot.bzh>2017-06-29 11:41:37 +0200
commitaadfcbbc6de6e2e4c188e5d8c90642c31a6e9e76 (patch)
treee9adc0b2e6126d825d3f4d70697c3ba37daf409c /conf.d/cmake/config.cmake
parentfbf30764a99192dfe193149ce4dc604e02c6b6be (diff)
Fix native build for openSUSE_Tumbleweed
* add library specification "-pthread" to CXX_FLAGS. fix build error under gcc7 "undefined reference to `pthread_create'" Change-Id: Ic952682086744f0e3f3e5f292495c7bc8b922316 Signed-off-by: Ronan Le Martret <ronan.lemartret@iot.bzh>
Diffstat (limited to 'conf.d/cmake/config.cmake')
-rw-r--r--conf.d/cmake/config.cmake4
1 files changed, 2 insertions, 2 deletions
diff --git a/conf.d/cmake/config.cmake b/conf.d/cmake/config.cmake
index e6a05b3..7b335e3 100644
--- a/conf.d/cmake/config.cmake
+++ b/conf.d/cmake/config.cmake
@@ -73,7 +73,7 @@ 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_CXX_FLAGS "-std=c++11 -pthread")
# Print a helper message when every thing is finished
# ----------------------------------------------------
@@ -147,4 +147,4 @@ set(WIDGET_ENTRY_POINT lib/afb-low-can.so)
# This include is mandatory and MUST happens at the end
# of this file, else you expose you to unexpected behavior
# -----------------------------------------------------------
-include(${PROJECT_APP_TEMPLATES_DIR}/cmake/common.cmake) \ No newline at end of file
+include(${PROJECT_APP_TEMPLATES_DIR}/cmake/common.cmake)