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.
In order to activate support for this experimental feature, set
CMAKE_EXPERIMENTAL_EXPORT_PACKAGE_INFO
tob80be207-778e-46ba-8080-b23bba22639e
.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(PACKAGE_INFO)
command is available to export
package information in the Common Package Specification format.In order to activate support for this experimental feature, set
CMAKE_EXPERIMENTAL_FIND_CPS_PACKAGES
toe82e467b-f997-4464-8ace-b00808fff261
.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:
import std
supportIn order to activate support for import std
in C++23 and newer targets,
set
CMAKE_EXPERIMENTAL_CXX_IMPORT_STD
toa9e1cf81-9932-4810-974b-6eccaf14e457
.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.In order to activate support for exporting build databases, set
CMAKE_EXPERIMENTAL_EXPORT_BUILD_DATABASE
to73194a1d-c0b5-41b9-9190-a4512925e192
.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:
In order to activate support for the :command:`cmake_instrumentation` command, set
CMAKE_EXPERIMENTAL_INSTRUMENTATION
toa37d1069-1972-4901-b9c9-f194aaf2b6e0
.To enable instrumentation at the user-level, files should be placed under
either
<CMAKE_CONFIG_DIR>/instrumentation-a37d1069-1972-4901-b9c9-f194aaf2b6e0
or
<CMAKE_BINARY_DIR>/.cmake/instrumentation-a37d1069-1972-4901-b9c9-f194aaf2b6e0
.
To include instrumentation data in CTest XML files (for submission to CDash), you need to set the following environment variables:
CTEST_USE_INSTRUMENTATION=1
CTEST_EXPERIMENTAL_INSTRUMENTATION=a37d1069-1972-4901-b9c9-f194aaf2b6e0
Вы можете оставить комментарий после Вход в систему
Неприемлемый контент может быть отображен здесь и не будет показан на странице. Вы можете проверить и изменить его с помощью соответствующей функции редактирования.
Если вы подтверждаете, что содержание не содержит непристойной лексики/перенаправления на рекламу/насилия/вульгарной порнографии/нарушений/пиратства/ложного/незначительного или незаконного контента, связанного с национальными законами и предписаниями, вы можете нажать «Отправить» для подачи апелляции, и мы обработаем ее как можно скорее.
Опубликовать ( 0 )