Skip to content

Commit

Permalink
#157 Adds -pthread flag for etcdlib
Browse files Browse the repository at this point in the history
  • Loading branch information
pnoltes committed Feb 29, 2020
1 parent daf4ff0 commit d5eabf9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion libs/etcdlib/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,9 @@ if (NOT COMMAND celix_subproject)
include(GNUInstallDirs)

set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake")
set(CMAKE_C_FLAGS "-pthread -D_GNU_SOURCE -std=gnu99 ${CMAKE_C_FLAGS}")
set(CMAKE_C_FLAGS "-fpthread -D_GNU_SOURCE -std=gnu99 ${CMAKE_C_FLAGS}")
set(CMAKE_C_FLAGS_DEBUG "-g -DDEBUG")
set(CMAKE_EXE_LINKER_FLAGS "-pthread ${CMAKE_EXE_LINKER_FLAGS}")

set(ETCDLIB_CMP ${CMAKE_INSTALL_DEFAULT_COMPONENT_NAME})
else()
Expand Down

0 comments on commit d5eabf9

Please sign in to comment.