aboutsummaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorambrosin <ambrosin@google.com>2022-09-22 08:55:32 -0700
committerCopybara-Service <copybara-worker@google.com>2022-09-22 08:56:52 -0700
commit275441faf75475dc4b7d1c74177931fd76d61c44 (patch)
treef241b63fcc1975039bc983a86561c760d75baacd /cmake
parentec8c77a2f7a00b39ff1178b5bf88c4385f7479cf (diff)
downloadtink-275441faf75475dc4b7d1c74177931fd76d61c44.tar.gz
Search into the `src/` subdir for BoringSSL's CMake config and specify only BUILD_INTERFACE for BoringSSL's includes
The latter is because we are only concerned about the build tree of `crypto`. https://cmake.org/cmake/help/latest/command/target_include_directories.html#target-include-directories PiperOrigin-RevId: 476112521
Diffstat (limited to 'cmake')
-rw-r--r--cmake/TinkWorkspace.cmake4
1 files changed, 3 insertions, 1 deletions
diff --git a/cmake/TinkWorkspace.cmake b/cmake/TinkWorkspace.cmake
index 57c5b487b..fc2f0a180 100644
--- a/cmake/TinkWorkspace.cmake
+++ b/cmake/TinkWorkspace.cmake
@@ -95,10 +95,12 @@ if (NOT TINK_USE_SYSTEM_OPENSSL)
NAME boringssl
URL https://github.com/google/boringssl/archive/d345d68d5c4b5471290ebe13f090f1fd5b7e8f58.zip
SHA256 482796f369c8655dbda3be801ae98c47916ecd3bff223d007a723fd5f5ecba22
+ CMAKE_SUBDIR src
)
# BoringSSL targets do not carry include directory info, this fixes it.
- target_include_directories(crypto PUBLIC "${boringssl_SOURCE_DIR}/src/include")
+ target_include_directories(crypto PUBLIC
+ "$<BUILD_INTERFACE:${boringssl_SOURCE_DIR}/src/include>")
else()
# Support for ED25519 was added from 1.1.1.
find_package(OpenSSL 1.1.1 REQUIRED)