CMakeFindPackageMode¶
This file is executed by cmake when invoked with –find-package. It expects that the following variables are set using -D:
NAMEname of the package
COMPILER_IDthe CMake compiler ID for which the result is, i.e. GNU/Intel/Clang/MSVC, etc.
LANGUAGElanguage for which the result will be used, i.e. C/CXX/Fortran/ASM
MODEEXISTonly check for existence of the given package
COMPILEprint the flags needed for compiling an object file which uses the given package
LINKprint the flags needed for linking when using the given package
QUIETif TRUE, don’t print anything