Marc Chevrier
5c1521c54d
FindPython: enforce artifacts consistency when cross-compiling
...
Fixes : #26696
2025-03-05 17:11:56 +01:00
Kitware Robot
1772622772
LICENSE: Replace references to Copyright.txt with LICENSE.rst
...
```
git grep -lz 'Copyright.txt or https://cmake.org/licensing ' |
while IFS= read -r -d $'\0' f ; do
sed -i '/Copyright.txt or https:\/\/cmake.org\/licensing / {
s/Copyright.txt/LICENSE.rst/
}' "$f" ; done
```
2025-03-03 10:43:35 -05:00
Brad King
7afa58b15d
Modules/Find*: Include FindPackageHandleStandardArgs normally
...
Since commit d74210a8bd
(CMP0017: Remove support for OLD behavior,
2024-11-17) we can rely on CMP0017's NEW behavior unconditionally.
Calling `include(FindPackageHandleStandardArgs)` in a builtin module
will always get the builtin `FindPackageHandleStandardArgs`.
2025-01-30 08:53:12 -05:00
Nikita Nemkin
9890cfc4ec
Help: More syntax highlighting for literal blocks
...
Covers almost all blocks containing actual code, except:
* Parsed-literal blocks can't be highlighted, including many command
summaries and substitution-heavy docs like find_... commands.
This is a Sphinx limitation.
* Code with errors, like CMP0049, DEPLOYMENT_ADDITIONAL_FILES,
DEPLOYMENT_REMOTE_DIRECTORY, @PACKAGE_INIT@ substitution in the
tutorial, bracket arguments/comments in cmake-language.7 and
cmake-developer.7.
* FindQt4 module, which needs reformatting.
2025-01-29 16:48:53 -05:00
Brad King
98a59ba8ad
CMP0012: Remove support for OLD behavior
2025-01-17 09:28:36 -05:00
Brad King
bd176b430c
Renumber post-3.31 development from 3.32 to 4.0
...
Issue: #26613
2025-01-16 09:18:21 -05:00
Marc Chevrier
9b0510fa57
FindPython: add support for multiple searches in same directory
...
In some situations, like cross-compilation, it can be required to search for
the host python interpreter as well as the cross-compilation development
artifacts.
By managing different prefixes for the artifacts, multiple and independent
searches can be achieved.
2025-01-11 15:47:06 +01:00
Marc Chevrier
9df2ccb1e8
Merge topic 'Help-FindPython-Fix-typo'
...
e7ea2998fb
Help: FindPython: fix typo
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10121
2024-12-22 07:17:53 -05:00
Marc Chevrier
e7ea2998fb
Help: FindPython: fix typo
2024-12-21 17:50:25 +01:00
Marc Chevrier
11aff3c490
FindPython: enhance Development artifacts lookup in virtual environment
...
To enable to locate development artifacts, in the context of virtual
environment, without requiring Interpreter component, rely on the
configuration file pyvenv.cfg.
Fixes : #26505
2024-12-12 13:53:11 +01:00
Brad King
8143e1b051
Merge topic 'FindPython-FIND_ABI'
...
f885b007b9
FindPython: ensure all ABI are searched by default
Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: buildbot <buildbot@kitware.com>
Tested-by: Ben Boeckel <ben.boeckel@kitware.com>
Merge-request: !9819
2024-09-16 06:17:59 -04:00
Marc Chevrier
f885b007b9
FindPython: ensure all ABI are searched by default
...
Fixes : #26279
2024-09-12 19:22:40 +02:00
Brad King
a818a9afd6
Merge topic 'FindPython-free-threaded-python'
...
10abd2ac5a
FindPython: ensure a usable environment is set for the free threaded Python
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !9775
2024-08-27 09:42:38 -04:00
Marc Chevrier
10abd2ac5a
FindPython: ensure a usable environment is set for the free threaded Python
...
Define the `Python_DEFINITIONS` variable for the support of free
threaded Python developments on Windows.
This is a complement to commit 9a0dee7257
(FindPython: Add support for
free threaded python, 2024-05-30).
2024-08-27 09:27:35 -04:00
Brad King
98c9674c5e
FindPython: Replace link to PyPy with its http redirect
2024-07-19 10:08:06 -04:00
Marc Chevrier
9a0dee7257
FindPython: Add support for free threaded python
...
Fixes : #26016
2024-06-04 18:14:35 +02:00
Marc Chevrier
c164404b2e
FindPython: On Windows, Enhance python debug version support
...
Add the following variables:
* Python_EXECUTABLE_DEBUG
* Python_INTERPRETER
* Python_DEBUG_POSTFIX
and target Python::InterpreterDebug.
python_add_library() command Manage DEBUG_POSTFIX target property based
on the value of Python_DEBUG_POSTFIX variable.
Fixes : #25874
2024-05-09 19:08:47 +02:00
Marc Chevrier
988ac305bd
FindPython: update for distutils module deprecation
...
Fixes : #24956
2023-06-05 11:22:03 +02:00
Brad King
202b2e1abd
FindPython: Cross-reference Python_FIND_{STRATEGY,UNVERSIONED_NAMES}
...
Mention each variable in the documentation of the other.
Issue: #24878
2023-05-03 09:45:36 -04:00
Marc Chevrier
4c902d675b
FindPython: ensure Stable ABI is correctly handled
...
Fixes : #24610
2023-03-20 08:10:53 -04:00
Marc Chevrier
77d734aede
FindPython: add support for Stable ABI
...
Fixes : #24141
2022-11-29 16:48:08 +01:00
Marc Chevrier
328d847f70
FindPython: enhance SOABI computation
...
Fixes : #24121 , #23651
2022-11-15 16:54:44 +01:00
Brad King
e159b5b2ae
Merge topic 'doc-improvements'
...
d4d1f85297
Help: Move a note about arguments and genexes into include file
968224484f
Help: Drop unused `PROPERTY_GENEX` replace from `prop_tgt/INTERFACE_*` files
65457e4fae
Help: Add _See Also_ sections to related CMake commands
c86ec79d07
Help: Use direct refs to genexes instead of ``$<GENEX-NAME>``
8c6274326d
Help: Use CMake highlighting for command synopsis
c356a94512
Help: Use monospaced font for a genex name in a section title
f98c8707f4
Help: Use `code-block:: cmake` instead of `::` for sub-commands descriptions
2ba351ca4f
Help: ``CMake`` → CMake
...
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !7873
2022-11-10 10:11:22 -05:00
Alex Turbov
2ba351ca4f
Help: `CMake
` → CMake
2022-11-07 22:55:06 +04:00
Alex Turbov
435b0c573c
Help: Fix some redirects reported with sphinx linkcheck
...
Mostly it's about replace `http:` with `https:` protocol.
2022-11-07 10:07:36 -05:00
Marc Chevrier
a35bf772de
FindPython: clarify static libraries hint usage
...
Fixes : #22956
2021-12-01 10:06:45 -05:00
Nikita Nemkin
8fea95319b
Help: Add .. versionadded
directives to module docs
...
Issue: #19715
2020-12-02 21:00:30 +05:00
Marc Chevrier
ee6f37d606
Help: FindPython: add version information
2020-12-01 11:53:30 +01:00
Marc Chevrier
e452f6e2cf
FindPython: Adds control over artifact names to search
...
Fixes : #21371
2020-11-03 15:12:58 +01:00
Marc Chevrier
5772ca0a53
FindPython: Ensure Apple Xcode python 3 is usable
...
The python 3 distributed as part of Xcode requires the specification
of a 'rpath' pointing at frameowrks root for a correct execution.
Fixes : #21293
2020-10-12 15:45:55 +02:00
Marc Chevrier
e4b7049230
FindPython: Add version range support
...
Fixes : #21107
2020-09-30 14:30:23 +02:00
Philipp Storz
b564ced24f
FindPython: fix typo in Python_LIBRARY_DIRS
...
Fixes the wrong spelling of Python_LIBRARY_DIRS as
"Python_LIBRAY_DIRS" which exists in
- FindPython
- FindPython2
- FindPython3
2020-09-11 20:35:34 +02:00
Jean-Christophe Fillion-Robin
207373802e
Fix typos identified using codespell
...
See https://github.com/codespell-project/codespell#readme
The following command was used:
```
codespell -q6 --skip="\
.git,\
*.json,\
./Copyright.txt,\
./Help/command/foreach.rst,\
./Help/prop_test/REQUIRED_FILES.rst,\
./Help/variable/CTEST_COVERAGE_COMMAND.rst,\
./Modules/CMakeCheckCompilerFlagCommonPatterns.cmake,\
./Modules/CMakeRCInformation.cmake,\
./Modules/Internal/CPack/NSIS.template.in,\
./Modules/FindMatlab.cmake,\
./Modules/MatlabTestsRedirect.cmake,\
./Modules/Platform/Windows-Clang.cmake,\
./Modules/Platform/Windows-Intel-Fortran.cmake,\
./Modules/Platform/Windows-MSVC.cmake,\
./Source/CMakeVersion.cmake,\
./Source/cmConvertMSBuildXMLToJSON.py,\
./Source/cmCreateTestSourceList.cxx,\
./Source/cmGlobalVisualStudio10Generator.cxx,\
./Source/cmExportBuildFileGenerator.cxx,\
./Source/cmExportInstallAndroidMKGenerator.cxx,\
./Source/cmExportInstallFileGenerator.cxx,\
./Source/cmExportSet.cxx,\
./Source/cmExportTryCompileFileGenerator.cxx,\
./Source/cmFindPackageCommand.cxx,\
./Source/cmInstallCommand.cxx,\
./Source/cmGeneratorExpressionLexer.cxx,\
./Source/cmLocalVisualStudio7Generator.cxx,\
./Source/cmOrderDirectories.cxx,\
./Source/cmTarget.cxx,\
./Source/kwsys/*,\
./Source/QtDialog/CMakeSetupDialog.ui,\
./Source/CPack/WiX/cmWIXRichTextFormatWriter.cxx,\
./Source/CTest/cmParseCoberturaCoverage.h,\
./Tests/CMakeTests/ImplicitLinkInfoTest.cmake.in,\
./Tests/RunCMake/CPack/tests/DMG_SLA/English.license.rtf,\
./Tests/RunCMake/CPack/tests/DMG_SLA/German.license.txt,\
./Tests/RunCMake/CPack/tests/DMG_SLA/German.menu.txt,\
./Tests/RunCMake/GoogleTest/xml_output.cpp,\
./Tests/RunCMake/Make/TargetMessages*,\
./Utilities/*,\
" \
-L "\
dependees,\
endwhile,\
fo,\
filetest,\
helpfull,\
nd,\
objext,\
stoll,\
supercedes,\
superceded,\
vas,\
varn,\
"
```
2020-07-22 12:44:47 -04:00
Kitware Robot
496ec6036f
Help: Add Sphinx 'versionadded' directives to each top-level document
...
Run the `Utilities/Sphinx/update_versions.py` script to add initial
markup to every top-level document and find module.
Issue: #19715
2020-07-06 10:23:20 -04:00
Marc Chevrier
e8ffc60220
FindPython: Add IronPython support on all platforms
2020-05-11 14:02:59 +02:00
Marc Chevrier
c1ef70d4d1
FindPython: Add support for 'PyPy'
2020-05-01 15:03:04 +02:00
Marc Chevrier
d2c47c822b
FindPython: Add capability to specify Python implementations
...
Through hint Python_FIND_IMPLEMENTATIONS it is possble to specify, as an
ordered list, which implementations must be searched for.
Currently possible values are:
* CPython
* IronPython
2020-04-28 13:56:18 +02:00
Marc Chevrier
c1b4044d3e
FindPython: add sub-components to Development component
...
Fixes : #20425
2020-04-16 14:38:39 +02:00
Marc Chevrier
525c730afe
Help: FindPython: fix typos and add some clarifications
2020-04-11 12:57:23 +02:00
Brad King
f2b4576373
Merge topic 'FindPython-polish'
...
bf1ecfef7f
FindPython: misc. fixes
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !4519
2020-03-25 08:13:07 -04:00
Marc Chevrier
bf1ecfef7f
FindPython: misc. fixes
...
Help: Fix errors regardings HINTS.
Code: Optimize Python signature cache variable to avoid unecessary searchs.
2020-03-24 18:26:16 +01:00
Marc Chevrier
e5b4c74238
FindPython: Add possibility to control scope of artifacts.
...
Fixes : #20362
2020-03-05 16:44:48 +01:00
Marc Chevrier
0c97b73bc0
FindPython: python_add_library can now manage SOABI suffix.
...
Fixes : #20408
2020-03-03 13:13:48 +01:00
Marc Chevrier
61502d3956
FindPython: Add variable Python_SOABI
...
This variable holds the standard extension suffix for modules.
Fixes : #20150
2020-01-09 14:43:22 +01:00
Sebastian Müller
776d27d4a4
FindPython: Extend virtual environment handling by considering conda
...
- Add functionality to recognize and use CONDA_PREFIX environment variable
- Add tests for conda virtual environments
- Fixes : #20111
2019-12-21 15:38:00 +01:00
Craig Scott
9914b90f4a
Help: Minor wording cleanup for Python modules
2019-10-27 21:36:31 +11:00
Marc Chevrier
06d9e67fbd
FindPython: Add capability to specify directly artifacts
...
Fixes : #19492
2019-09-02 17:20:53 +02:00
Marc Chevrier
7ed84b1e8f
FindPython: ensure virtual environments are correctly handled
...
Fixes : #19525
2019-08-05 18:20:29 +02:00
Marc Chevrier
9201908ca5
FindPython: add Python_FIND_ABI hint.
...
This variable will enable to specify will ABIs will be searched.
2019-06-24 12:00:21 +02:00
Marc Chevrier
62d6ed79fb
FindPython: Add variable 'Python_FIND_FRAMEWORK' to control frameworks lookup.
2019-05-24 18:44:43 +02:00