Skip to content

Commit

Permalink
cmake: link against pthread
Browse files Browse the repository at this point in the history
  • Loading branch information
illwieckz committed Jul 5, 2024
1 parent 2408d47 commit 66d3438
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,9 @@ else()
endif()
endif()

if (BUILD_SHARED_LIBCRN OR BUILD_STATIC_LIBCRN OR BUILD_CRUNCH)
if (BUILD_SHARED_LIBCRN OR BUILD_STATIC_LIBCRN OR BUILD_CRUNCH OR BULD_EXAMPLES)
set_cxx_flag("-pthread")
set_linker_flag("-pthread")
add_subdirectory(crnlib crnlib)
endif()

Expand Down

0 comments on commit 66d3438

Please sign in to comment.