Skip to content

Commit

Permalink
Add find_package(Threads) to CMake (#936)
Browse files Browse the repository at this point in the history
  • Loading branch information
mwilsnd authored Mar 31, 2023
1 parent d3b62ab commit d387090
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions platform/linux/linux.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ find_package(JPEG REQUIRED)
find_package(PNG REQUIRED)
find_package(PkgConfig REQUIRED)
find_package(X11 REQUIRED)
find_package(Threads REQUIRED)

pkg_search_module(LIBUV libuv REQUIRED)

Expand Down Expand Up @@ -112,6 +113,7 @@ target_link_libraries(
${JPEG_LIBRARIES}
${LIBUV_LIBRARIES}
${X11_LIBRARIES}
${CMAKE_THREAD_LIBS_INIT}
$<$<NOT:$<BOOL:${MBGL_USE_BUILTIN_ICU}>>:ICU::i18n>
$<$<NOT:$<BOOL:${MBGL_USE_BUILTIN_ICU}>>:ICU::uc>
$<$<BOOL:${MBGL_USE_BUILTIN_ICU}>:mbgl-vendor-icu>
Expand Down

0 comments on commit d387090

Please sign in to comment.