summaryrefslogtreecommitdiffstats
path: root/Help/guide/tutorial/Step3/MathFunctions/MathFunctions.h
diff options
context:
space:
mode:
authorNemanja Ivanovic <nemanjai@ca.ibm.com>2022-11-16 02:25:55 (GMT)
committerBrad King <brad.king@kitware.com>2022-12-01 22:55:39 (GMT)
commite7f78309e761af3c4c929388bba0cb967f670b35 (patch)
tree48763326c556cbad51b022bb04a0ab07b24ac44f /Help/guide/tutorial/Step3/MathFunctions/MathFunctions.h
parent4f9ec5a9befe176a402c079a1644de034ff6ab79 (diff)
downloadCMake-e7f78309e761af3c4c929388bba0cb967f670b35.zip
CMake-e7f78309e761af3c4c929388bba0cb967f670b35.tar.gz
CMake-e7f78309e761af3c4c929388bba0cb967f670b35.tar.bz2
find_library: Construct paths by removing 'unknown' from library arch
The compiler used for a build sometimes disagrees with the remainder of the toolchain wrt. to the architecture triple. Specifically, Clang will typically put its libraries in `<arch>-unknown-<os>-<env>` but it uses the GCC toolchain on many targets (which often has its libraries in `<arch>-<os>-<env>`). In such cases CMake will acquire the triple from Clang and use it in library search paths for libraries that are provided by the GCC toolchain. This of course fails due to the mismatch. This patch augments the list of search paths with ones that include the architecture triple with any occurrences of 'unknown' removed. Fixes: #24175
Diffstat (limited to 'Help/guide/tutorial/Step3/MathFunctions/MathFunctions.h')
0 files changed, 0 insertions, 0 deletions