[CMake] find_package Config vs Module mode

Joachim Wuttke j.wuttke at fz-juelich.de
Sat Oct 20 07:22:04 EDT 2018


Somewhere we are advised that Module mode should be phased out in favor of Config mode.

If Config mode is the newer, preferred way to find a package, I would expect
find_package to first try Config mode, and only fall back to Module mode if
no config scripts can be found. However, according to the find_package doc page,
it is just the other way round.

Why?

How to enforce that new config scripts are used if there are still FindXXX
modules around?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5110 bytes
Desc: S/MIME Cryptographic Signature
URL: <https://cmake.org/pipermail/cmake/attachments/20181020/03d4ce99/attachment.bin>


More information about the CMake mailing list