forked from lijiext/lammps
must use C++ compiler to check for include files
This commit is contained in:
parent
3e2f3a8058
commit
7f4c611e21
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue