summaryrefslogtreecommitdiffstats
path: root/Modules/FindPython/Support.cmake
Commit message (Collapse)AuthorAgeFilesLines
* FindPython: fix python compiler validationMarc Chevrier2020-04-231-15/+16
| | | | | | | Ensure also the cache of properties is erased in case of multiple searches. Fixes: #20626, #20627
* FindPython: remove extra dereferenceBen Boeckel2020-04-141-1/+1
| | | | | If the version is not found (e.g., missing headers), this causes a CMake error about `if(blah VERSION_EQUAL)` being an invalid statement.
* FindPython: avoid autoderef in version comparisonsBen Boeckel2020-04-141-8/+8
|
* Merge topic 'FindPython-fix-VIRTUALENV-eq-FIRST' into release-3.17Brad King2020-04-021-1/+1
|\ | | | | | | | | | | | | 81beb28752 FindPython: fix handling when FIND_VIRTUALENV == FIRST Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !4557
| * FindPython: fix handling when FIND_VIRTUALENV == FIRSTMarc Chevrier2020-04-011-1/+1
| | | | | | | | Fixes: #20525
| * FindPython: Do not cache computed result variables in CMake 3.16Marc Chevrier2020-02-261-2/+2
| | | | | | | | | | | | | | | | | | | | Since commit 06d9e67fbd (FindPython: Add capability to specify directly artifacts, 2019-08-15, v3.16.0-rc1~157^2) we accidentally add the result variables `Python*_LIBRARY_RELEASE` and `Python*_LIBRARY_DEBUG` to the cache. They are always computed from other results and so should not be presented to users in cmake-gui and ccmake to edit. Issue: #20362
| * FindPython: Mark non-public cache entries INTERNAL in CMake 3.16Marc Chevrier2020-02-261-48/+95
| | | | | | | | | | | | | | | | | | Since commit 06d9e67fbd (FindPython: Add capability to specify directly artifacts, 2019-08-15, v3.16.0-rc1~157^2) we accidentally expose cache entries named `_Python...` to users in cmake-gui and ccmake. Mark those entries as `INTERNAL` to hide them. Issue: #20362
* | FindPython: fix variable spelling errorMarc Chevrier2020-03-261-1/+1
| |
* | FindPython: misc. fixesMarc Chevrier2020-03-241-3/+3
| | | | | | | | | | Help: Fix errors regardings HINTS. Code: Optimize Python signature cache variable to avoid unecessary searchs.
* | FindPython: fix regression on version validationMarc Chevrier2020-03-171-4/+4
| | | | | | | | | | | | | | | | | | | | In commit 3dab4682f6 (FindPython: reduces consumption of resources, 2020-02-10, v3.17.0-rc1~11^2) we accidentally broke the python executable version validation when the "LOCATION" strategy is used with the plain `FindPython` module. Fix the logic and add test cases covering those combinations. Fixes: #20465
* | FindPython: Convert env CMAKE_FRAMEWORK_PATH to CMake pathBo Anderson2020-03-111-1/+2
| |
* | FindPython: python_add_library can now manage SOABI suffix.Marc Chevrier2020-03-031-6/+23
| | | | | | | | Fixes: #20408
* | FindPython: Do not cache computed result variablesMarc Chevrier2020-02-261-2/+2
| | | | | | | | | | | | | | | | | | | | Since commit 06d9e67fbd (FindPython: Add capability to specify directly artifacts, 2019-08-15, v3.16.0-rc1~157^2) we accidentally add the result variables `Python*_LIBRARY_RELEASE` and `Python*_LIBRARY_DEBUG` to the cache. They are always computed from other results and so should not be presented to users in cmake-gui and ccmake to edit. Issue: #20362
* | FindPython: Mark non-public cache entries INTERNALMarc Chevrier2020-02-261-52/+99
| | | | | | | | | | | | | | | | | | Since commit 06d9e67fbd (FindPython: Add capability to specify directly artifacts, 2019-08-15, v3.16.0-rc1~157^2) we accidentally expose cache entries named `_Python...` to users in cmake-gui and ccmake. Mark those entries as `INTERNAL` to hide them. Issue: #20362
* | FindPython: reduces consumption of resourcesMarc Chevrier2020-02-101-88/+137
| | | | | | | | | | | | | | Stores more information in the cache to reduce the number of sub-processes required on subsequent find_package calls. Fixes: #20337
* | Merge topic 'python39'Brad King2020-01-151-1/+1
|\ \ | |/ | | | | | | | | | | | | | | f6474214b3 FindPython: Add support for version 3.9 Acked-by: Kitware Robot <kwrobot@kitware.com> Reviewed-by: Marc Chevrier <marc.chevrier@gmail.com> Acked-by: Björn Esser <besser82@fedoraproject.org> Merge-request: !4225
| * FindPython: Add support for version 3.9Miro Hrončok2020-01-141-1/+1
| | | | | | | | | | | | | | Development versions of Python 3.9.0 are already out there. See PEP 596 -- Python 3.9 Release Schedule: https://www.python.org/dev/peps/pep-0596/
* | Merge topic 'macOS-Xcode-11-frameworks'Brad King2020-01-131-0/+3
|\ \ | |/ | | | | | | | | | | | | fcde42751a FindPython: ensure new Xcode framework for Python3 is detected dd7b741b81 macOS: Add support for new Xcode 11 frameworks directory Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !4198
| * FindPython: ensure new Xcode framework for Python3 is detectedMarc Chevrier2020-01-101-0/+3
| |
* | FindPython: Add variable Python_SOABIMarc Chevrier2020-01-091-6/+44
| | | | | | | | | | | | This variable holds the standard extension suffix for modules. Fixes: #20150
* | Merge topic 'findpython_conda_support'Marc Chevrier2019-12-231-7/+7
|\ \ | | | | | | | | | | | | | | | | | | 776d27d4a4 FindPython: Extend virtual environment handling by considering conda Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !4155
| * | FindPython: Extend virtual environment handling by considering condaSebastian Müller2019-12-211-7/+7
| | | | | | | | | | | | | | | | | | - Add functionality to recognize and use CONDA_PREFIX environment variable - Add tests for conda virtual environments - Fixes: #20111
* | | Merge topic 'FindPython-Fix-target-properties'Kyle Edwards2019-12-201-1/+1
|\ \ \ | |/ / |/| / | |/ | | | | | | | | fe280e0cda FindPython*: Fix erroneous target properties setting Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Kyle Edwards <kyle.edwards@kitware.com> Merge-request: !4154
| * FindPython*: Fix erroneous target properties settingMarc Chevrier2019-12-191-1/+1
| | | | | | | | | | Property IMPORTED_CONFIGURATIONS for targets Python*::Python and Python*::Module is not correctly set.
* | FindPython: customize failure messageMarc Chevrier2019-11-011-1/+49
|/
* FindPython: Add capability to specify directly artifactsMarc Chevrier2019-09-021-205/+292
| | | | Fixes: #19492
* FindPython: Enhance python cache variables management.Marc Chevrier2019-09-021-756/+935
| | | | | | Ensure multiple cmake runs without cache clean-up will preserve artifacts selected on first run. This change address the issue #19492.
* FindPython: ensure virtual environments are correctly handledMarc Chevrier2019-08-051-185/+294
| | | | Fixes: #19525
* Merge topic 'FindPython-interpreter-crosscompiling'Brad King2019-07-181-11/+10
|\ | | | | | | | | | | | | 696d0f9caf FindPython: ensure interpreter is founded when cross-compiling Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3564
| * FindPython: ensure interpreter is founded when cross-compilingMarc Chevrier2019-07-181-11/+10
| | | | | | | | Fixes: #19473
* | FindPython: add Python_FIND_ABI hint.Marc Chevrier2019-06-241-99/+270
|/ | | | This variable will enable to specify will ABIs will be searched.
* FindPython: ensure Python_ROOT_DIR is always searched firstMarc Chevrier2019-05-311-0/+2
|
* FindPython*: remove erroneous codeMarc Chevrier2019-05-301-2/+0
|
* FindPython: Add variable 'Python_FIND_FRAMEWORK' to control frameworks lookup.Marc Chevrier2019-05-241-9/+20
|
* FindPython: Add policy to manage lookup stratgey default.Marc Chevrier2019-05-211-2/+12
|
* FindPython: Implement lookup strategies.Marc Chevrier2019-05-211-363/+764
| | | | | | | Configration variable Python_FIND_STRATEGY controls the lookup startegy. Possible values are LOCATION and VERSION. Fixes: #19159
* FindPython*: Manage weak link for Python modulesMarc Chevrier2019-05-071-63/+98
| | | | | | | Add new target Python::Module which take care of platform requirements for Python module development. Fixes: #18100
* Merge topic 'FindPython-fix-Python_RUNTIME_LIBRARY_DIRS-variable'Brad King2019-05-061-3/+6
|\ | | | | | | | | | | | | 34c0293532 FindPython: ensure variable Python_RUNTIME_LIBRARY_DIRS is set correctly Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3287
| * FindPython: ensure variable Python_RUNTIME_LIBRARY_DIRS is set correctlyMarc Chevrier2019-05-051-3/+6
| |
* | Merge topic 'FindPython-NumPy-fix-dependencies-management'Brad King2019-05-011-9/+13
|\ \ | |/ | | | | | | | | | | 68c8201711 FindPython: NumPy: fix erroneous dependencies management Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3274
| * FindPython: NumPy: fix erroneous dependencies managementMarc Chevrier2019-04-301-9/+13
| |
* | FindPython*: Add capability to control virtual env handling.Marc Chevrier2019-04-031-5/+60
|/ | | | Fixes: #19097
* FindPython*: ensure correct architecture is selected.Marc Chevrier2019-03-141-8/+8
| | | | | | | | Ensure interpreter and libraries architecture matches CMake build configuration. Update documentation about interpreter constraints. Fixes: #19024
* FindPython: Fix NumPy component include directoryMarc Chevrier2019-03-041-2/+1
| | | | | | | Update the component added by commit 513e77550d (FindPython: Introduce NumPy component, 2018-12-12, v3.14.0-rc1~95^2). The `numpy/` sub-directory should not be part of the include directory. It should be part of the `#include` line.
* FindPython: Introduce NumPy componentHiroshi Miura2019-01-241-0/+47
| | | | | Fixes: #18678 Signed-off-by: Hiroshi Miura <miurahr@linux.com>
* FindPython: Support script modeKyle Edwards2019-01-231-101/+105
| | | | Fixes: #18827
* FindPython: Ensure config tool matches library architectureMarc Chevrier2018-11-191-0/+17
|
* FindPython*: Add missing registry pathsMarc Chevrier2018-10-111-2/+33
| | | | Fixes: #18443
* FindPython*: fix erroneous handling of virtual environmentsMarc Chevrier2018-10-021-11/+15
| | | | fixes: #18408
* FindPython*: Windows: add facility to select lookup order for registry.Marc Chevrier2018-09-121-60/+204
| | | | Fixes: #18302