boringssl/crypto/poly1305/CMakeLists.txt
David Benjamin e6fd125d31 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>
2018-08-10 16:22:31 +00:00

22 lines
245 B
CMake

include_directories(../../include)
if(${ARCH} STREQUAL "arm")
set(
POLY1305_ARCH_SOURCES
poly1305_arm_asm.S
)
endif()
add_library(
poly1305
OBJECT
poly1305.c
poly1305_arm.c
poly1305_vec.c
${POLY1305_ARCH_SOURCES}
)