summaryrefslogtreecommitdiffstats
path: root/Help/command
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2024-04-01 13:37:47 (GMT)
committerKitware Robot <kwrobot@kitware.com>2024-04-01 13:38:14 (GMT)
commit252c2a6fcba52927a8d24b26aed86ae8539ed965 (patch)
treeec70a38b9ffc16a8d647aa1d6dafe1a20def068d /Help/command
parent554a9b00c8728ecda29b86aded0785e0748bb984 (diff)
parenta61c9afdf8b2c9cd424734c430b55de0581a67d5 (diff)
downloadCMake-252c2a6fcba52927a8d24b26aed86ae8539ed965.zip
CMake-252c2a6fcba52927a8d24b26aed86ae8539ed965.tar.gz
CMake-252c2a6fcba52927a8d24b26aed86ae8539ed965.tar.bz2
Merge topic 'add_library-no-static-fallback'
a61c9afdf8 add_library: Reject shared libraries on platforms that do not support them Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !9347
Diffstat (limited to 'Help/command')
-rw-r--r--Help/command/add_library.rst7
1 files changed, 7 insertions, 0 deletions
diff --git a/Help/command/add_library.rst b/Help/command/add_library.rst
index 5b22cb1..cab380e 100644
--- a/Help/command/add_library.rst
+++ b/Help/command/add_library.rst
@@ -84,6 +84,13 @@ See also :prop_sf:`HEADER_FILE_ONLY` on what to do if some sources are
pre-processed, and you want to have the original sources reachable from
within IDE.
+.. versionchanged:: 3.30
+
+ On platforms that do not support shared libraries, ``add_library``
+ now fails on calls creating ``SHARED`` libraries instead of
+ automatically converting them to ``STATIC`` libraries as before.
+ See policy :policy:`CMP0164`.
+
Object Libraries
^^^^^^^^^^^^^^^^