From b28636e54f682dc65aef169f201a34a8e2893369 Mon Sep 17 00:00:00 2001 From: Julian Andres Klode Date: Thu, 20 Jul 2017 20:50:05 +0200 Subject: Use C++11 threading support instead of pthread This makes the code easier to read. --- CMakeLists.txt | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 49650bc0c..6d41f728a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -32,7 +32,7 @@ include(CheckFunctionExists) include(CheckStructHasMember) include(GNUInstallDirs) include(TestBigEndian) -find_package(Threads) +find_package(Threads REQUIRED) find_package(LFS REQUIRED) find_package(Iconv REQUIRED) @@ -146,10 +146,6 @@ test_big_endian(WORDS_BIGENDIAN) # FreeBSD add_definitions(-D_WITH_GETLINE=1) -if (CMAKE_USE_PTHREADS_INIT) - set(HAVE_PTHREAD 1) -endif() - CHECK_INCLUDE_FILES(machine/endian.h HAVE_MACHINE_ENDIAN_H) CHECK_INCLUDE_FILES(sys/endian.h HAVE_SYS_ENDIAN_H) CHECK_INCLUDE_FILES(endian.h HAVE_ENDIAN_H) -- cgit v1.2.3