From f8bf91ba16a116474c802938d914067560ca3749 Mon Sep 17 00:00:00 2001 From: katbohm <96047875+katbohm@users.noreply.github.com> Date: Mon, 17 Jan 2022 13:03:21 +0100 Subject: [PATCH] fixing: remove semicolon from the flags (#2717) * fixing: if (${USE_POSIX_THREAD} ... causes a syntax error, adding a semicolon to the flags * Metadata updates for release 8.12.41 (#2718) * Penmetsaa maven update release 8.12.41 (#2719) * [maven-release-plugin] prepare release v8.12.41 * [maven-release-plugin] prepare for next development iteration * Update README.md (#2720) Co-authored-by: penmetsaa --- cpp/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpp/CMakeLists.txt b/cpp/CMakeLists.txt index 72b7913a6..d84633130 100644 --- a/cpp/CMakeLists.txt +++ b/cpp/CMakeLists.txt @@ -467,7 +467,7 @@ endif () if (${USE_POSIX_THREAD} STREQUAL "ON" OR ((APPLE OR UNIX) AND ${USE_BOOST} STREQUAL "OFF" AND ${USE_STDMUTEX} STREQUAL "OFF")) if(CMAKE_USE_PTHREADS_INIT) - list (APPEND CMAKE_C_FLAGS "-pthread") + set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -pthread") endif() if(CMAKE_THREAD_LIBS_INIT) list (APPEND LIBRARY_DEPS ${CMAKE_THREAD_LIBS_INIT})