diff options
| author | Francois Budin <francois.budin@gmail.com> | 2016-12-14 03:29:46 (GMT) |
|---|---|---|
| committer | Brad King <brad.king@kitware.com> | 2016-12-15 14:34:48 (GMT) |
| commit | a12d8a03af8430d0a570c97deb200e16830568eb (patch) | |
| tree | 7fd7df72fcc1a1d3b606ee6f3ec1ab10329d3288 /Tests/Module/WriteCompilerDetectionHeader/multi_files.cpp | |
| parent | 61001557d44fef7b98a4bab463bf66797f927197 (diff) | |
| download | CMake-a12d8a03af8430d0a570c97deb200e16830568eb.zip CMake-a12d8a03af8430d0a570c97deb200e16830568eb.tar.gz CMake-a12d8a03af8430d0a570c97deb200e16830568eb.tar.bz2 | |
FindPythonLibs: Tolerate call with PYTHON_LIBRARY already a list
`PYTHON_LIBRARY` may contain a list because of `SelectLibraryConfigurations`.
If it is the case, the list can be:
optimized;<FILEPATH_TO_RELEASE_LIBRARY>;debug;<FILEPATH_TO_DEBUG_LIBRARY>
Instead of directly using the value of `PYTHON_LIBRARY` in the CMake
function `get_filename_component()`, we loop over the content of the
relevant parts of `PYTHON_LIBRARY` and `PYTHON_DEBUG_LIBRARY` whether
they are lists or not.
Suggested-by: Brad King <brad.king@kitware.com>
Diffstat (limited to 'Tests/Module/WriteCompilerDetectionHeader/multi_files.cpp')
0 files changed, 0 insertions, 0 deletions
