summaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorمهدي شينون (Mehdi Chinoune) <79349457+MehdiChinoune@users.noreply.github.com>2021-10-16 07:55:10 +0100
committerMehdi Chinoune <mehdi.chinoune@hotmail.com>2021-10-16 08:02:27 +0100
commitefd7ac241dc7de94b3a6e660599df795e2320828 (patch)
tree196be1ace3a7629bee9d80a9fb04b89ffd56366e /cmake
parent8a87e80c742a146d3900d64046d4f4c7fd58b6b0 (diff)
downloadopenblas-efd7ac241dc7de94b3a6e660599df795e2320828.tar.gz
openblas-efd7ac241dc7de94b3a6e660599df795e2320828.tar.bz2
openblas-efd7ac241dc7de94b3a6e660599df795e2320828.zip
Fix MinGW/Clang 64 bits detection.
CMAKE_COMPILER_IS_GNUCC is only valid for GCC.
Diffstat (limited to 'cmake')
-rw-r--r--cmake/system_check.cmake6
1 files changed, 3 insertions, 3 deletions
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()