Skip to content

Commit d498a7e

Browse files
committed
Link required threads libs
1 parent 27fb327 commit d498a7e

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ clang-tidy: $(BUILD)/compile_commands.json
118118
run-clang-tidy -p $(BUILD) tests examples
119119

120120
codespell:
121-
codespell -L statics,snd,copyable,cancelled
121+
codespell -w
122122

123123
format: cmake-format clang-format
124124

src/beman/execution/CMakeLists.txt

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55

66
include(GNUInstallDirs)
77

8+
find_package(Threads REQUIRED)
9+
810
add_library(beman.execution STATIC)
911
add_library(beman::execution ALIAS beman.execution)
1012

@@ -189,11 +191,7 @@ get_property(DETAIL_HEADER_FILES TARGET beman.execution PROPERTY HEADER_SET_bema
189191
source_group("Header Files\\detail" FILES ${DETAIL_HEADER_FILES})
190192

191193
set_target_properties(beman.execution PROPERTIES VERIFY_INTERFACE_HEADER_SETS ON)
192-
193-
target_compile_features(beman.execution PUBLIC
194-
"$<$<COMPILE_FEATURES:cxx_std_26>:cxx_std_26>"
195-
"$<$<NOT:$<COMPILE_FEATURES:cxx_std_26>>:cxx_std_23>"
196-
)
194+
target_link_libraries(beman.execution PUBLIC Threads::Threads)
197195

198196
install(
199197
TARGETS beman.execution COMPONENT beman.execution

0 commit comments

Comments
 (0)