Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

csync: using std::thread; #507

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions wrappers/c_sync/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,15 @@
# C Synchronous Interface
######################################################################################

set(THREADS_USE_PTHREADS_WIN32 true)
cmake_minimum_required(VERSION 3.5)

find_package(Threads REQUIRED)
include_directories(${THREADS_PTHREADS_INCLUDE_DIR})
list(APPEND CompileFeatures "cxx_alias_templates" "cxx_nullptr")

add_library (freenect_sync SHARED libfreenect_sync.c)
add_library (freenect_sync_static STATIC libfreenect_sync.c)
add_library(freenect_sync SHARED libfreenect_sync.cpp)
add_library(freenect_sync_static STATIC libfreenect_sync.cpp)
target_compile_features(freenect_sync PRIVATE ${CompileFeatures})
target_compile_features(freenect_sync_static PRIVATE ${CompileFeatures})
set_target_properties (freenect_sync_static PROPERTIES OUTPUT_NAME freenect_sync)

set_target_properties (freenect_sync PROPERTIES
Expand Down
Loading