aboutsummaryrefslogtreecommitdiff
path: root/pkg-config
diff options
context:
space:
mode:
authorAvatar Heiko Becker <heirecka@exherbo.org> 2016-12-12 21:18:00 +0100
committerAvatar Saleem Abdulrasool <compnerd@compnerd.org> 2016-12-13 15:09:57 -0800
commitf1cb2cfd493f1cc06ea5965c07334e502decdccc (patch)
tree662778b4e89cbbe89ed286c5628880eccfa2f22d /pkg-config
parent07328ab9371e93e0c25313bd1ac5f982f65bf971 (diff)
downloadpaludis-f1cb2cfd493f1cc06ea5965c07334e502decdccc.tar.gz
paludis-f1cb2cfd493f1cc06ea5965c07334e502decdccc.tar.xz
build: Use the imported target for linking to pthread
Our required cmake version is new enough (>=3.1) and usage of the imported target is recommended by cmake's documentation [1]. Furthermore, according to the docs THREADS_PREFER_PTHREAD_FLAG can only be used with the imported target. [1] https://cmake.org/cmake/help/v3.7/module/FindThreads.html
Diffstat (limited to 'pkg-config')
-rw-r--r--pkg-config/CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg-config/CMakeLists.txt b/pkg-config/CMakeLists.txt
index abd0cf777..5137a4161 100644
--- a/pkg-config/CMakeLists.txt
+++ b/pkg-config/CMakeLists.txt
@@ -1,7 +1,7 @@
set(PALUDIS_PKG_CONFIG_CFLAGS)
set(PALUDIS_PKG_CONFIG_LIBS
- "-lpaludis_${PALUDIS_PKG_CONFIG_SLOT} -lpaludisutil_${PALUDIS_PKG_CONFIG_SLOT} -lpaludisargs_${PALUDIS_PKG_CONFIG_SLOT} ${CMAKE_THREAD_LIBS_INIT}")
+ "-lpaludis_${PALUDIS_PKG_CONFIG_SLOT} -lpaludisutil_${PALUDIS_PKG_CONFIG_SLOT} -lpaludisargs_${PALUDIS_PKG_CONFIG_SLOT} Threads::Threads")
configure_file("${CMAKE_CURRENT_SOURCE_DIR}/paludis.pc.cmake"
"${CMAKE_CURRENT_BINARY_DIR}/paludis.pc"