From efd7ac241dc7de94b3a6e660599df795e2320828 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D9=85=D9=87=D8=AF=D9=8A=20=D8=B4=D9=8A=D9=86=D9=88=D9=86?= =?UTF-8?q?=20=28Mehdi=20Chinoune=29?= <79349457+MehdiChinoune@users.noreply.github.com> Date: Sat, 16 Oct 2021 07:55:10 +0100 Subject: Fix MinGW/Clang 64 bits detection. CMAKE_COMPILER_IS_GNUCC is only valid for GCC. --- cmake/system_check.cmake | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'cmake') diff --git a/cmake/system_check.cmake b/cmake/system_check.cmake index 8d0558c0e..72c48db37 100644 --- a/cmake/system_check.cmake +++ b/cmake/system_check.cmake @@ -20,11 +20,11 @@ endif() -if(CMAKE_COMPILER_IS_GNUCC AND WIN32) +if(MINGW) execute_process(COMMAND ${CMAKE_C_COMPILER} -dumpmachine - OUTPUT_VARIABLE OPENBLAS_GCC_TARGET_MACHINE + OUTPUT_VARIABLE OPENBLAS_MINGW_TARGET_MACHINE OUTPUT_STRIP_TRAILING_WHITESPACE) - if(OPENBLAS_GCC_TARGET_MACHINE MATCHES "amd64|x86_64|AMD64") + if(OPENBLAS_MINGW_TARGET_MACHINE MATCHES "amd64|x86_64|AMD64") set(MINGW64 1) endif() endif() -- cgit v1.2.3