diff options
author | Roland Schulz <roland.schulz@intel.com> | 2018-04-13 00:49:05 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2018-04-16 18:11:12 (GMT) |
commit | 0c7433e874d5f28b15009dbfb1f19ecb34cd71ee (patch) | |
tree | 989eca6c6bc724de1dac771ff96ada0c846a9bc2 /CTestConfig.cmake | |
parent | 61fd4c742013a7f9139db190f936703b656540ff (diff) | |
download | CMake-0c7433e874d5f28b15009dbfb1f19ecb34cd71ee.zip CMake-0c7433e874d5f28b15009dbfb1f19ecb34cd71ee.tar.gz CMake-0c7433e874d5f28b15009dbfb1f19ecb34cd71ee.tar.bz2 |
FindOpenMP: Fix support for Intel on Windows
The change in commit v3.11.0-rc1~334^2 (FindOpenMP: Use NO_DEFAULT_PATH
where appropriate, 2017-11-15) broke partial support for Intel on Windows.
Since `OpenMP_${LANG}_IMPLICIT_LINK_DIRS` is empty for this compiler
the `find_library` call without `NO_DEFAULT_PATH` worked accidentally
in environments with the needed libraries in the search path already.
Fix support for Intel on Windows by simply removing our explicit search
for the `libiomp5md` library. In cases that it is needed, the compiler
already inserts metadata in `.obj` files to tell the MSVC linker to use
the library.
Suggested-by: Christian Pfeiffer <cpfeiffer@live.de>
Fixes: #17910
Diffstat (limited to 'CTestConfig.cmake')
0 files changed, 0 insertions, 0 deletions