[PATCH] D29555: [CMake] Fix pthread handling for out-of-tree builds
Eric Fiselier via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sat Feb 4 19:14:43 PST 2017
EricWF created this revision.
Herald added a subscriber: mgorny.
LLVM defines `PTHREAD_LIB` which is used by AddLLVM.cmake and various projects to correctly link the threading library when needed. Unfortunately `PTHREAD_LIB` is defined by LLVM's `config-ix.cmake` file which isn't installed and therefore can't be used when configuring out-of-tree builds. This causes such builds to fail since `pthread` isn't being correctly linked.
This patch attempts to fix that problem by renaming and exporting `LLVM_PTHREAD_LIB` as part of`LLVMConfig.cmake`.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 5726 bytes
Desc: not available
More information about the llvm-commits