Fwd: [CMake] --enable-* with cmake
Christian Convey
christian.convey at gmail.com
Wed Aug 8 10:26:23 EDT 2007
On 8/8/07, Philip Lowman <philip at yhbt.com> wrote:
> Eric Noulard wrote:
...
>
> --enable-foo is much more readable than -DENABLE_FOO or -DUSE_FOO.
> Having implemented USE_FOO arguments for every single one of our
> optional dependencies and looked at them on a CMake command line I can
> attest to this. :)
...
If you're concerned that it offering each option requires a lot of
lines in your CMakeLists.txt file, perhaps a MACRO definition would
help you?
More information about the CMake
mailing list