summaryrefslogtreecommitdiff
path: root/0-librealsense2-fix-threads-not-found.patch
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2026-03-31 10:12:31 +0000
committerCoprDistGit <infra@openeuler.org>2026-03-31 10:12:31 +0000
commit8386d21312bf758fb2d038c81e3be3bd19f80c9c (patch)
tree6debf220c6457f416a09c2b6c988a3d53e0eeec5 /0-librealsense2-fix-threads-not-found.patch
parentcdb81c19ef6f684c65dec824d9cd64242877abc8 (diff)
automatic import of ros-humble-librealsense2openeuler24.03_LTS
Diffstat (limited to '0-librealsense2-fix-threads-not-found.patch')
-rw-r--r--0-librealsense2-fix-threads-not-found.patch23
1 files changed, 23 insertions, 0 deletions
diff --git a/0-librealsense2-fix-threads-not-found.patch b/0-librealsense2-fix-threads-not-found.patch
new file mode 100644
index 0000000..e985607
--- /dev/null
+++ b/0-librealsense2-fix-threads-not-found.patch
@@ -0,0 +1,23 @@
+---
+ CMakeLists.txt | 5 +++++
+ 1 file changed, 5 insertions(+)
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 8f80c78..0b11b78 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -4,6 +4,11 @@ project(librealsense2 LANGUAGES CXX C)
+
+ # Allow librealsense2 and all of the nested project to include the main repo folder
+ set(REPO_ROOT ${CMAKE_CURRENT_SOURCE_DIR})
++set(CMAKE_THREAD_LIBS_INIT "-lpthread")
++set(CMAKE_HAVE_THREADS_LIBRARY 1)
++set(CMAKE_USE_WIN32_THREADS_INIT 0)
++set(CMAKE_USE_PTHREADS_INIT 1)
++set(THREADS_PREFER_PTHREAD_FLAG ON)
+ include_directories(${REPO_ROOT})
+
+ include(CMake/lrs_options.cmake)
+--
+2.43.0
+