[cmake-developers] FindThreads_overhaul topic

Brad King brad.king at kitware.com
Wed Oct 8 10:54:12 EDT 2014


On 10/07/2014 12:18 PM, Rolf Eike Beer wrote:
>>> +  add_library(CMake::Threads INTERFACE IMPORTED GLOBAL)
>>
> Both issues should be fixed now.

Thanks.  Your use of an interface target for this is a clever way
of abstracting the differences between libraries and flags.  Nice.

I'd rather reserve the CMake:: imported target namespace for future
use.  The convention in other Find modules is to prefix the imported
targets with the name of the package.  In this case we have no good
name for the library within the namespace.  Here is a brainstorming
list of possible names:

 Threads::Threads
 Threads::Interface # my favorite
 Threads::Native
 Threads::System

Please pick one of these or propose your own and update the topic.

Thanks,
-Brad




More information about the cmake-developers mailing list