From e354c4db8b5c1aca8742126417873e4bf6c635fb Mon Sep 17 00:00:00 2001 From: Akira Kakuto Date: Sat, 18 Sep 2021 03:14:52 +0000 Subject: harfbuzz 3.0.0 git-svn-id: svn://tug.org/texlive/trunk@60533 c570f23f-e606-0410-a88d-b1316a301751 --- Build/source/libs/harfbuzz/harfbuzz-src/CMakeLists.txt | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'Build/source/libs/harfbuzz/harfbuzz-src/CMakeLists.txt') diff --git a/Build/source/libs/harfbuzz/harfbuzz-src/CMakeLists.txt b/Build/source/libs/harfbuzz/harfbuzz-src/CMakeLists.txt index 37909190771..dee9a4678da 100644 --- a/Build/source/libs/harfbuzz/harfbuzz-src/CMakeLists.txt +++ b/Build/source/libs/harfbuzz/harfbuzz-src/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.0.0) +cmake_minimum_required(VERSION 3.1) project(harfbuzz) message(WARN "HarfBuzz has a Meson port and tries to migrate all the other build systems to it, please consider using it as we might remove our cmake port soon.") @@ -102,9 +102,13 @@ if (${HAVE_STDBOOL_H}) add_definitions(-DHAVE_STDBOOL_H) endif () -# https://github.com/harfbuzz/harfbuzz/pull/2874#issuecomment-782859099 -if (NOT WIN32) - add_definitions("-DHAVE_PTHREAD") +if (NOT MSVC) + set(THREADS_PREFER_PTHREAD_FLAG ON) + find_package(Threads) + if (CMAKE_USE_PTHREADS_INIT) + add_definitions("-DHAVE_PTHREAD") + list(APPEND THIRD_PARTY_LIBS Threads::Threads) + endif () endif () if (MSVC) -- cgit v1.2.3