Skip to content

Commit 5abe51f

Browse files
committed
c_sync: using std::thread;
Signed-off-by: Benn Snyder <[email protected]>
1 parent f5f69d5 commit 5abe51f

File tree

2 files changed

+133
-113
lines changed

2 files changed

+133
-113
lines changed

wrappers/c_sync/CMakeLists.txt

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,14 @@
22
# C Synchronous Interface
33
######################################################################################
44

5-
set(THREADS_USE_PTHREADS_WIN32 true)
65
find_package(Threads REQUIRED)
7-
include_directories(${THREADS_PTHREADS_INCLUDE_DIR})
86

9-
add_library (freenect_sync SHARED libfreenect_sync.c)
10-
add_library (freenect_sync_static STATIC libfreenect_sync.c)
7+
list(APPEND CompileFeatures "cxx_alias_templates" "cxx_auto_type" "cxx_nullptr")
8+
9+
add_library(freenect_sync SHARED libfreenect_sync.cpp)
10+
add_library(freenect_sync_static STATIC libfreenect_sync.cpp)
11+
target_compile_features(freenect_sync PRIVATE ${CompileFeatures})
12+
target_compile_features(freenect_sync_static PRIVATE ${CompileFeatures})
1113
set_target_properties (freenect_sync_static PROPERTIES OUTPUT_NAME freenect_sync)
1214

1315
set_target_properties (freenect_sync PROPERTIES

0 commit comments

Comments
 (0)