mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-21 10:27:50 +08:00
59a8a9c624
* [libmysql]Fix build error in linux. * [libmysql] Fix typo in prerequisites message
19 lines
669 B
Diff
19 lines
669 B
Diff
diff --git a/configure.cmake b/configure.cmake
|
|
index 1f3d8e2..9e45f48 100644
|
|
--- a/configure.cmake
|
|
+++ b/configure.cmake
|
|
@@ -456,7 +456,11 @@ IF(NOT HAVE_FCNTL_NONBLOCK)
|
|
ENDIF()
|
|
|
|
IF(NOT CMAKE_CROSSCOMPILING AND NOT MSVC)
|
|
- STRING(TOLOWER ${CMAKE_SYSTEM_PROCESSOR} processor)
|
|
+ IF(${CMAKE_SYSTEM_PROCESSOR})
|
|
+ STRING(TOLOWER ${CMAKE_SYSTEM_PROCESSOR} processor)
|
|
+ ELSE()
|
|
+ STRING(TOLOWER ${CMAKE_HOST_SYSTEM_PROCESSOR} processor)
|
|
+ ENDIF()
|
|
IF(processor MATCHES "86" OR processor MATCHES "amd64" OR processor MATCHES "x64")
|
|
IF(NOT CMAKE_SYSTEM_NAME MATCHES "SunOS")
|
|
# The loader in some Solaris versions has a bug due to which it refuses to
|
|
|