diff options
author | Balthasar Reuter <github@re-web.eu> | 2022-07-19 16:11:02 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2022-07-20 16:21:38 (GMT) |
commit | 878655384e3d35da0d7ce03001e23c1ce02a6530 (patch) | |
tree | 50e8264eeb5ada23a1414b76f7668bdc72693736 /Source/kwsys | |
parent | 0f65ab5bcb66f94e5ab20b095d5a3296a36ccd02 (diff) | |
download | CMake-878655384e3d35da0d7ce03001e23c1ce02a6530.zip CMake-878655384e3d35da0d7ce03001e23c1ce02a6530.tar.gz CMake-878655384e3d35da0d7ce03001e23c1ce02a6530.tar.bz2 |
FindOpenMP: Do not overwrite user-set FLAGS, LIB_NAMES
Since commit 2dbff623f9 (FindOpenMP: Save flags/libs in cache entries
each time they are detected, 2020-02-07, v3.17.0-rc1~10^2~1) we replace
both `OpenMP_${LANG}_FLAGS` and `OpenMP_${LANG}_LIB_NAMES` with detected
flags if either one is not set. That can overwrite user-provided flags.
Update the logic for C, CXX, and Fortran to initialize each
`OpenMP_${LANG}_{FLAGS,LIB_NAMES}` variable only if it has not already
been set by the user.
Fixes: #23743
Diffstat (limited to 'Source/kwsys')
0 files changed, 0 insertions, 0 deletions