Skip to content

Commit 57d41b2

Browse files
Remove guard.
1 parent d442eb1 commit 57d41b2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

FindMKL.cmake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,6 @@ if(${CMAKE_VERSION} VERSION_LESS "3.13")
7474
message(FATAL_ERROR "The minimum supported CMake version is 3.13. You are running version ${CMAKE_VERSION}")
7575
endif()
7676

77-
include_guard()
7877
include(FindPackageHandleStandardArgs)
7978

8079
if(NOT MKL_LIBRARIES)
@@ -86,6 +85,7 @@ if(NOT MKL_LIBRARIES)
8685
# Compiler checks
8786
# ================
8887

88+
include(CMakeDetermineCCompiler)
8989
if(CMAKE_C_COMPILER)
9090
get_filename_component(C_COMPILER_NAME ${CMAKE_C_COMPILER} NAME)
9191
endif()
@@ -98,7 +98,7 @@ if(NOT MKL_LIBRARIES)
9898
elseif(CMAKE_C_COMPILER_ID STREQUAL "GNU")
9999
set(GNU_C_COMPILER ON)
100100
else()
101-
message(FATAL_ERROR "Only clang or gnu compilers supported.")
101+
message(FATAL_ERROR "Only clang or gnu compilers supported. Name=${C_COMPILER_NAME} - Id=${CMAKE_C_COMPILER_ID}")
102102
endif()
103103

104104
# ================

0 commit comments

Comments
 (0)