CMAKE_TRY_COMPILE_TARGET_TYPE

CMAKE_TRY_COMPILE_TARGET_TYPE

Type of target generated for try_compile() calls using the source file signature. Valid values are:

EXECUTABLE
Use add_executable() to name the source file in the generated project. This is the default if no value is given.
STATIC_LIBRARY
Use add_library() with the STATIC option to name the source file in the generated project. This avoids running the linker and is intended for use with cross-compiling toolchains that cannot link without custom flags or linker scripts.

© 2000–2016 Kitware, Inc.
© 2000–2011 Insight Software Consortium
Licensed under the BSD 3-clause License.
https://cmake.org/cmake/help/v3.6/variable/CMAKE_TRY_COMPILE_TARGET_TYPE.html

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部