The following is a guide to CMake experimental features that are under development and not yet included in official documentation. See documentation on CMake Development for more information.
Features are gated behind CMAKE_EXPERIMENTAL_
variables which must be set
to specific values in order to enable their gated behaviors. Note that the
specific values will change over time to reinforce their experimental nature.
When used, a warning will be generated to indicate that an experimental
feature is in use and that the affected behavior in the project is not part of
CMake's stability guarantees.
In order to activate support for this experimental feature, set
CMAKE_EXPERIMENTAL_EXPORT_PACKAGE_DEPENDENCIES
to1942b4fa-b2c5-4546-9385-83f254070067
.This UUID may change in future versions of CMake. Be sure to use the value documented here by the source tree of the version of CMake with which you are experimenting.
When activated, this experimental feature provides the following:
install(EXPORT)
and export(EXPORT)
commands have experimental
EXPORT_PACKAGE_DEPENDENCIES
arguments to generate find_dependency
calls automatically.export(SETUP)
command's PACKAGE_DEPENDENCY
argument.CMAKE_EXPORT_FIND_PACKAGE_NAME
variable and/orEXPORT_FIND_PACKAGE_NAME
target property.
import std
supportIn order to activate support for import std
in C++23 and newer targets,
set
CMAKE_EXPERIMENTAL_CXX_IMPORT_STD
to0e5b6991-d74f-4b3d-a41c-cf096e0b2508
.This UUID may change in future versions of CMake. Be sure to use the value
documented here by the source tree of the version of CMake with which you are
experimenting. It must be set before the CXX
toolchain is discovered by
CMake, usually as part of a :command:`project` call.
When activated, this experimental feature provides the following:
cxx_std_23
may use import std;
in any scanned C++ source file.此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。