diff options
author | Brad King <brad.king@kitware.com> | 2020-12-02 13:21:12 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2020-12-02 13:21:12 (GMT) |
commit | bdfa5ac7f6cfc961665064f1b7a1395cfd0b2281 (patch) | |
tree | 9f9c8f4ef0db863fb6adc0ae70891477d66d1cdb /Help/command/export.rst | |
parent | f7ff0d34f0750387f5c56483ab6ba3fb4825b62d (diff) | |
parent | 628d7ef67258f67e0b4086905011d90727d8b9a1 (diff) | |
download | CMake-bdfa5ac7f6cfc961665064f1b7a1395cfd0b2281.zip CMake-bdfa5ac7f6cfc961665064f1b7a1395cfd0b2281.tar.gz CMake-bdfa5ac7f6cfc961665064f1b7a1395cfd0b2281.tar.bz2 |
Merge branch 'master' into llvm-rc-preprocess-as-c
Diffstat (limited to 'Help/command/export.rst')
-rw-r--r-- | Help/command/export.rst | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/Help/command/export.rst b/Help/command/export.rst index 2ca7056..e8a1fa7 100644 --- a/Help/command/export.rst +++ b/Help/command/export.rst @@ -64,16 +64,23 @@ build tree. In some cases, for example for packaging and for system wide installations, it is not desirable to write the user package registry. -By default the ``export(PACKAGE)`` command does nothing (see policy -:policy:`CMP0090`) because populating the user package registry has effects -outside the source and build trees. Set the -:variable:`CMAKE_EXPORT_PACKAGE_REGISTRY` variable to add build directories to -the CMake user package registry. +.. versionchanged:: 3.1 + If the :variable:`CMAKE_EXPORT_NO_PACKAGE_REGISTRY` variable + is enabled, the ``export(PACKAGE)`` command will do nothing. + +.. versionchanged:: 3.15 + By default the ``export(PACKAGE)`` command does nothing (see policy + :policy:`CMP0090`) because populating the user package registry has effects + outside the source and build trees. Set the + :variable:`CMAKE_EXPORT_PACKAGE_REGISTRY` variable to add build directories + to the CMake user package registry. .. code-block:: cmake export(TARGETS [target1 [target2 [...]]] [ANDROID_MK <filename>]) +.. versionadded:: 3.7 + This signature exports cmake built targets to the android ndk build system by creating an Android.mk file that references the prebuilt targets. The Android NDK supports the use of prebuilt libraries, both static and shared. |