Unverified Commit 4cee333c authored by Axel Kohlmeyer's avatar Axel Kohlmeyer Committed by GitHub
Browse files

need to use C++ compiler when checking for includes

this is the same bugfix as in PR #1504
parent b368b11d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
if(PKG_USER-INTEL)
  include(CheckIncludeFile)
  check_include_file(immintrin.h FOUND_IMMINTRIN)
  check_include_file_cxx(immintrin.h FOUND_IMMINTRIN)
  if(NOT FOUND_IMMINTRIN)
    message(FATAL_ERROR "immintrin.h header not found, Intel package won't work without it")
  endif()