[CMake] Abuse of find_package COMPONENTS, or not?
Marcel Loose
loose at astron.nl
Wed May 20 10:51:04 EDT 2009
Hi Denis,
Kind of you to let me decide ;-)
But seriously, I posted this question, because I wanted to know whether
this is the CMake-way of doing things. Not because I like to write the
macro that way.
In the end, maybe a larger community might want to use this macro. If
so, then it would really help if it adheres to some (unwritten)
standards.
Best regards,
Marcel Loose.
-----Original Message-----
From: Denis Scherbakov <denis_scherbakov at yahoo.com>
To: cmake at cmake.org, Marcel Loose <loose at astron.nl>
Subject: Re: [CMake] Abuse of find_package COMPONENTS, or not?
Date: Wed, 20 May 2009 07:29:15 -0700 (PDT)
> What do you mean with like FindBoost did? Can you be a bit
> more
> specific?
Like
set(FFTW_DO_SOMETHING ON)
find_package(FindeFFTW)
If you say that your components are mutually exclusive, then I'd rather use a flag than a component name.
But you're the author, so you decide.
Denis
More information about the CMake
mailing list