FindOpenMP broken in 3.11 for Intel compiler on Windows
!1481 (merged) added NO_DEFAULT_PATH
. This commit should have only changed the first occurrence but not the 2nd which is only for Intel on Windows. In that case OpenMP_${LANG}_IMPLICIT_LINK_DIRS
is empty because no verbose flag exists. Thus it doesn't work without using the default paths.
Steps to reproduce. CMakeLists.txt
with:
find_package(OpenMP)
Run cmake as:
$ cmake -G Ninja -DCMAKE_C_COMPILER=icl -DCMAKE_CXX_COMPILER=icl .
Tested with Intel compiler 18u2.
Edited by Brad King