From aadfcbbc6de6e2e4c188e5d8c90642c31a6e9e76 Mon Sep 17 00:00:00 2001 From: Ronan Le Martret Date: Thu, 29 Jun 2017 00:35:21 +0200 Subject: 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 --- conf.d/cmake/config.cmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/conf.d/cmake/config.cmake b/conf.d/cmake/config.cmake index e6a05b36..7b335e3d 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) -- cgit 1.2.3-korg