Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/boringssl.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Benjamin <davidben@chromium.org>2015-04-02 23:47:15 +0300
committerAdam Langley <agl@google.com>2015-04-03 00:07:17 +0300
commit72f5911a1690efbf4a2be92586452fed639c3216 (patch)
tree3589994f8315605324630eb0b7e1a946d48664af /crypto/CMakeLists.txt
parent4d78718cde0a23421ea4d8f1245b21fe37f7a519 (diff)
Fix the standalone shared library build.
BUG=473360 Change-Id: I6dc06eb425dd10c8d6a40d17f94405ea6f2f3905 Reviewed-on: https://boringssl-review.googlesource.com/4210 Reviewed-by: Adam Langley <agl@google.com>
Diffstat (limited to 'crypto/CMakeLists.txt')
-rw-r--r--crypto/CMakeLists.txt10
1 files changed, 5 insertions, 5 deletions
diff --git a/crypto/CMakeLists.txt b/crypto/CMakeLists.txt
index 9eb9452a..1e5806ee 100644
--- a/crypto/CMakeLists.txt
+++ b/crypto/CMakeLists.txt
@@ -189,6 +189,10 @@ add_library(
$<TARGET_OBJECTS:pkcs8>
)
+if(NOT MSVC)
+ target_link_libraries(crypto pthread)
+endif()
+
add_executable(
constant_time_test
@@ -203,11 +207,7 @@ add_executable(
thread_test.c
)
-if(MSVC)
- target_link_libraries(thread_test crypto)
-else()
- target_link_libraries(thread_test crypto pthread)
-endif()
+target_link_libraries(thread_test crypto)
perlasm(cpu-x86_64-asm.${ASM_EXT} cpu-x86_64-asm.pl)
perlasm(cpu-x86-asm.${ASM_EXT} cpu-x86-asm.pl)