[cmake-developers] Gold standard find module?

David Cole dlrdave at aol.com
Wed Sep 10 06:29:13 EDT 2014


I would say there are no "gold standard" find modules.

The gold standard is a project config file, like Qt5 has.

From http://www.cmake.org/cmake/help/v3.0/manual/cmake-qt.7.html :

"the Qt 5 libraries are found using "Config-file Packages" shipped with 
Qt 5"

Also, search this page for "Config mode":

http://www.cmake.org/cmake/help/v3.0/command/find_package.html

Find modules in CMake should be the last resort option, when it is 
simply impossible to add a project config mode file to a project.

On the other hand, if the intent behind your question is to make the 
existing find modules all follow a given standard..... that's quite an 
ambitious goal. Let's see if anybody else names actual names for the 
"gold standard."


Just my opinion,
David C.




More information about the cmake-developers mailing list