aboutsummaryrefslogtreecommitdiff
path: root/tool
diff options
context:
space:
mode:
authorDavid Benjamin <davidben@google.com>2018-08-10 10:30:55 -0500
committerAdam Langley <agl@google.com>2018-08-10 16:22:31 +0000
commite6fd125d31e11fbb96eda31b150ec806ba166322 (patch)
tree247f72f17cc21078279405b2676ba57663439da3 /tool
parentddedf6d455e33d6a0b3bc40581700f3d252029d7 (diff)
downloadboringssl-e6fd125d31e11fbb96eda31b150ec806ba166322.zip
boringssl-e6fd125d31e11fbb96eda31b150ec806ba166322.tar.gz
boringssl-e6fd125d31e11fbb96eda31b150ec806ba166322.tar.bz2
Align on a single CMake style.
We currently write a mix of "if (FOO)" and "if(FOO)". While the former looks more like a usual language, CMake believes everything, even "if" and "else", is just a really really funny function call (a "command"). We should pick something for consistency. Upstream CMake writes "if(FOO)", so go with that one. Change-Id: I67e0eb650a52670110b417312a362c9f161c8721 Reviewed-on: https://boringssl-review.googlesource.com/30807 Reviewed-by: Adam Langley <agl@google.com>
Diffstat (limited to 'tool')
-rw-r--r--tool/CMakeLists.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/tool/CMakeLists.txt b/tool/CMakeLists.txt
index 244f7df..87efb09 100644
--- a/tool/CMakeLists.txt
+++ b/tool/CMakeLists.txt
@@ -20,11 +20,11 @@ add_executable(
transport_common.cc
)
-if (APPLE OR WIN32 OR ANDROID)
+if(APPLE OR WIN32 OR ANDROID)
target_link_libraries(bssl ssl crypto)
else()
find_library(FOUND_LIBRT rt)
- if (FOUND_LIBRT)
+ if(FOUND_LIBRT)
target_link_libraries(bssl ssl crypto -lrt)
else()
target_link_libraries(bssl ssl crypto)