From 4cee333c07acecc6ac25aaa30fd06bedb85522c5 Mon Sep 17 00:00:00 2001 From: Axel Kohlmeyer Date: Tue, 11 Jun 2019 07:12:39 -0400 Subject: [PATCH] need to use C++ compiler when checking for includes this is the same bugfix as in PR #1504 --- cmake/Modules/Packages/USER-INTEL.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/Modules/Packages/USER-INTEL.cmake b/cmake/Modules/Packages/USER-INTEL.cmake index 5295ed42d5..f61b8f1630 100644 --- a/cmake/Modules/Packages/USER-INTEL.cmake +++ b/cmake/Modules/Packages/USER-INTEL.cmake @@ -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()