Unverified Commit 7f4c611e authored by Axel Kohlmeyer's avatar Axel Kohlmeyer
Browse files

must use C++ compiler to check for include files

parent 3e2f3a80
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1135,7 +1135,7 @@ endif()

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()