diff options
author | Brad King <brad.king@kitware.com> | 2024-09-27 11:58:21 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2024-09-27 11:58:43 (GMT) |
commit | 536f3e27d69338069ab512e9bb5d6a578a77d662 (patch) | |
tree | baaa1882c91d39d6688dc0478473c448aa295c01 /Help | |
parent | 36a855bf87fb4cf05f6761d22d651492d1da667c (diff) | |
parent | 73a8f944b2c91af4de58ae5a203e59138dba76d2 (diff) | |
download | CMake-536f3e27d69338069ab512e9bb5d6a578a77d662.zip CMake-536f3e27d69338069ab512e9bb5d6a578a77d662.tar.gz CMake-536f3e27d69338069ab512e9bb5d6a578a77d662.tar.bz2 |
Merge topic 'project-vars'
73a8f944b2 Help: Add 3.30 release notes for project variable updates
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !9853
Diffstat (limited to 'Help')
-rw-r--r-- | Help/release/3.30.rst | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/Help/release/3.30.rst b/Help/release/3.30.rst index 50fefe2..30d23bb 100644 --- a/Help/release/3.30.rst +++ b/Help/release/3.30.rst @@ -258,8 +258,25 @@ Changes made since CMake 3.30.0 include the following. 3.30.3 ------ +* The :command:`project(<PROJECT-NAME>)` command now sets + :variable:`<PROJECT-NAME>_SOURCE_DIR`, :variable:`<PROJECT-NAME>_BINARY_DIR`, + and :variable:`<PROJECT-NAME>_IS_TOP_LEVEL` as normal variables in addition + to setting them as cache entries. This is needed to preserve support for + some :module:`FetchContent` use cases under policy :policy:`CMP0169`'s + NEW behavior. + * The :module:`FindPython` and :module:`FindPython3` modules now define, respectively, the ``Python_DEFINITIONS`` and ``Python3_DEFINITIONS`` variables on Windows to support development with the free threaded version of Python. The :prop_tgt:`INTERFACE_COMPILE_DEFINITIONS` target property is also defined for the various targets provided by these modules. + +.. 3.30.4 (unreleased) + + * The :command:`project(<PROJECT-NAME>)` command now sets + :variable:`<PROJECT-NAME>_SOURCE_DIR`, :variable:`<PROJECT-NAME>_BINARY_DIR`, + and :variable:`<PROJECT-NAME>_IS_TOP_LEVEL` as normal variables only if they + are already set as normal variables when :command:`project` is invoked. + Cache entries by the same names are always set as before. + This refines 3.30.3's behavior change to restore behavior of nested + directories that call :command:`project` with the same project name. |