Skip to content

Commit 669c477

Browse files
committed
[cmake] thread is required
1 parent 5612dc6 commit 669c477

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,10 @@ set(CMAKE_CXX_STANDARD 11)
77
option(BUILD_SAMPLE "Build the example file" ON)
88
option(BUILD_SHARED_LIBS "Build shared libraries" ON)
99

10+
find_package(Threads REQUIRED)
11+
1012
add_library(delaunay delaunay-psm/Delaunay_psm.cpp)
13+
target_link_libraries(delaunay PRIVATE Threads::Threads)
1114

1215
set_target_properties(delaunay PROPERTIES DEBUG_POSTFIX "d")
1316
set_target_properties(delaunay PROPERTIES

cmake/Config.cmake.in

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
@PACKAGE_INIT@
22

3+
include(CMakeFindDependencyMacro)
4+
find_dependency(Threads)
5+
36
include("${CMAKE_CURRENT_LIST_DIR}/@[email protected]")
47
check_required_components("@PROJECT_NAME@")

0 commit comments

Comments
 (0)