need to use C++ compiler when checking for includes

this is the same bugfix as in PR #1504
This commit is contained in:
Axel Kohlmeyer
2019-06-11 07:12:39 -04:00
committed by GitHub
parent b368b11d60
commit 4cee333c07

View File

@ -1,6 +1,6 @@
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()