diff options
author | David Benjamin <davidben@google.com> | 2023-01-29 15:53:30 -0500 |
---|---|---|
committer | Boringssl LUCI CQ <boringssl-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2023-02-06 21:40:20 +0000 |
commit | 61266e464b9b509a8a0943b9cc826c97c31e04e7 (patch) | |
tree | 96944418b4997c8ae53f744aaf13c4f89b9caa8a /CMakeLists.txt | |
parent | 8bc06cf491243eb95afebc80020c958a16e269a7 (diff) | |
download | boringssl-61266e464b9b509a8a0943b9cc826c97c31e04e7.zip boringssl-61266e464b9b509a8a0943b9cc826c97c31e04e7.tar.gz boringssl-61266e464b9b509a8a0943b9cc826c97c31e04e7.tar.bz2 |
Limit the CMake -isysroot assembly workaround to older CMake
It was fixed in CMake 3.19 with
https://gitlab.kitware.com/cmake/cmake/-/issues/20771
Change-Id: Ia76ab6690e233bc650e11a79db381c00f21c83a1
Reviewed-on: https://boringssl-review.googlesource.com/c/boringssl/+/56568
Commit-Queue: David Benjamin <davidben@google.com>
Reviewed-by: Bob Beck <bbe@google.com>
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 1a1a008..1cb7226 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -420,8 +420,9 @@ if(FIPS_DELOCATE OR NOT OPENSSL_NO_ASM) else() enable_language(ASM) set(OPENSSL_ASM TRUE) - # CMake does not add -isysroot and -arch flags to assembly. - if(APPLE) + # Work around https://gitlab.kitware.com/cmake/cmake/-/issues/20771 in older + # CMake versions. + if(APPLE AND CMAKE_VERSION VERSION_LESS 3.19) if(CMAKE_OSX_SYSROOT) set(CMAKE_ASM_FLAGS "${CMAKE_ASM_FLAGS} -isysroot \"${CMAKE_OSX_SYSROOT}\"") endif() |