diff options
author | Po-Chuan Hsieh <sunpoet@sunpoet.net> | 2020-04-14T16·14+0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-14T16·14-0400 |
commit | 567bee2f7393fca6ca737ecf061bd9f97302e346 (patch) | |
tree | a48661e3885389abc333f2853e5ec309a6a8b80f /absl/copts/AbseilConfigureCopts.cmake | |
parent | bf6166a635ab57fe0559b00dcd3ff09a8c42de2e (diff) |
Fix ABSL_RANDOM_RANDEN_COPTS setting on FreeBSD (#664)
* Fix build on FreeBSD On FreeBSD amd64, both uname -p and uname -m returns amd64 (lowercase). It seems Windows returns AMD64 (uppercase). Reference: [1] https://cmake.org/cmake/help/latest/variable/CMAKE_SYSTEM_PROCESSOR.html [2] https://cmake.org/cmake/help/latest/variable/CMAKE_HOST_SYSTEM_PROCESSOR.html * Use MATCHES for multiple values
Diffstat (limited to 'absl/copts/AbseilConfigureCopts.cmake')
-rw-r--r-- | absl/copts/AbseilConfigureCopts.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/absl/copts/AbseilConfigureCopts.cmake b/absl/copts/AbseilConfigureCopts.cmake index 9557e36f68d4..acd46d04aa5a 100644 --- a/absl/copts/AbseilConfigureCopts.cmake +++ b/absl/copts/AbseilConfigureCopts.cmake @@ -12,7 +12,7 @@ else() set(ABSL_BUILD_DLL FALSE) endif() -if("${CMAKE_SYSTEM_PROCESSOR}" STREQUAL "x86_64" OR "${CMAKE_SYSTEM_PROCESSOR}" STREQUAL "AMD64") +if("${CMAKE_SYSTEM_PROCESSOR}" MATCHES "x86_64|amd64|AMD64") if (MSVC) set(ABSL_RANDOM_RANDEN_COPTS "${ABSL_RANDOM_HWAES_MSVC_X64_FLAGS}") else() |