must use C++ compiler to check for include files

This commit is contained in:
Axel Kohlmeyer 2019-06-11 06:51:03 -04:00
parent 3e2f3a8058
commit 7f4c611e21
No known key found for this signature in database
GPG Key ID: D9B44E93BF0C375A
1 changed files with 1 additions and 1 deletions

View File

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