From 3ff63338bb60f238947ace088e1d1a0bc1d36f3f Mon Sep 17 00:00:00 2001 From: "Chiu. Aaron (TPE)" Date: Wed, 26 Oct 2022 09:17:14 +0800 Subject: [PATCH] fix rs-server can't compile when -DBUILD_WITH_OPENMP:bool=ON --- tools/rs-server/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/rs-server/CMakeLists.txt b/tools/rs-server/CMakeLists.txt index 617a723793..cf9d942f64 100644 --- a/tools/rs-server/CMakeLists.txt +++ b/tools/rs-server/CMakeLists.txt @@ -16,7 +16,7 @@ set(DEPENDENCIES ${DEPENDENCIES} realsense2 Threads::Threads) set(CMAKE_CXX_FLAGS "-DNEWLOCALE_NOT_USED=1 -DBSD=1 -DSOCKLEN_T=socklen_t -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE=1 -DALLOW_RTSP_SERVER_PORT_REUSE=1 -DNO_OPENSSL=1 -latomic") -SET(CMAKE_EXE_LINKER_FLAGS ${CMAKE_EXE_LINKER_FLAGS} "-pthread") +SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -pthread") set(LIVE ${CMAKE_BINARY_DIR}/third-party/live)