CMakeFindPackageMode

CMakeFindPackageMode

This file is executed by cmake when invoked with –find-package. It expects that the following variables are set using -D:

NAME
name of the package
COMPILER_ID
the CMake compiler ID for which the result is, i.e. GNU/Intel/Clang/MSVC, etc.
LANGUAGE
language for which the result will be used, i.e. C/CXX/Fortan/ASM
MODE
EXIST
only check for existence of the given package
COMPILE
print the flags needed for compiling an object file which uses the given package
LINK
print the flags needed for linking when using the given package
QUIET
if TRUE, don’t print anything

© 2000–2017 Kitware, Inc. and Contributors
Licensed under the BSD 3-clause License.
https://cmake.org/cmake/help/v3.8/module/CMakeFindPackageMode.html

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部