blob: c32b707cb7f7a85c7510a183eba4b8f2283188ce [file] [log] [blame]
David Benjamin96628432017-01-19 19:05:47 -05001cmake_minimum_required (VERSION 2.8.11)
Adam Langley95c29f32014-06-20 12:00:00 -07002
David Benjamin6b34d542016-02-05 21:58:39 -05003# Defer enabling C and CXX languages.
4project (BoringSSL NONE)
5
6if(WIN32)
7 # On Windows, prefer cl over gcc if both are available. By default most of
8 # the CMake generators prefer gcc, even on Windows.
9 set(CMAKE_GENERATOR_CC cl)
10endif()
11
David Benjamin3ecd0a52017-05-19 15:26:18 -040012include(sources.cmake)
13
David Benjamin6b34d542016-02-05 21:58:39 -050014enable_language(C)
15enable_language(CXX)
Adam Langley95c29f32014-06-20 12:00:00 -070016
Adam Langley843ab662015-04-28 17:46:58 -070017if(ANDROID)
18 # Android-NDK CMake files reconfigure the path and so Go and Perl won't be
19 # found. However, ninja will still find them in $PATH if we just name them.
Tamas Berghammer5693e422016-05-19 14:28:14 +010020 if(NOT PERL_EXECUTABLE)
21 set(PERL_EXECUTABLE "perl")
22 endif()
23 if(NOT GO_EXECUTABLE)
24 set(GO_EXECUTABLE "go")
25 endif()
Adam Langley843ab662015-04-28 17:46:58 -070026else()
27 find_package(Perl REQUIRED)
28 find_program(GO_EXECUTABLE go)
29endif()
David Benjamin3ce3c362015-02-23 13:06:19 -050030
David Benjamind27eda02015-03-05 01:19:27 -050031if (NOT GO_EXECUTABLE)
32 message(FATAL_ERROR "Could not find Go")
33endif()
34
David Benjamin2507d9e2017-07-26 11:39:38 -040035if (BORINGSSL_ALLOW_CXX_RUNTIME)
36 add_definitions(-DBORINGSSL_ALLOW_CXX_RUNTIME)
37endif()
38
Brian Smith1d75c8b2015-01-23 17:25:44 -080039if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang")
Adam Langley01867872016-06-30 14:16:59 -070040 set(C_CXX_FLAGS "-Wall -Werror -Wformat=2 -Wsign-compare -Wmissing-field-initializers -Wwrite-strings -ggdb -fvisibility=hidden -fno-common")
David Benjamin9b7d8362016-08-29 14:59:31 -040041 if(CMAKE_CXX_COMPILER_ID MATCHES "Clang")
David Benjamin9fb6fea2017-07-31 14:03:38 -040042 set(C_CXX_FLAGS "${C_CXX_FLAGS} -Wnewline-eof -fcolor-diagnostics")
Adam Langley5c38c052017-04-28 14:47:06 -070043 else()
44 # GCC (at least 4.8.4) has a bug where it'll find unreachable free() calls
45 # and declare that the code is trying to free a stack pointer.
46 set(C_CXX_FLAGS "${C_CXX_FLAGS} -Wno-free-nonheap-object")
David Benjamin9b7d8362016-08-29 14:59:31 -040047 endif()
Adam Langley01867872016-06-30 14:16:59 -070048 set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${C_CXX_FLAGS} -Wmissing-prototypes -Wold-style-definition -Wstrict-prototypes")
David Benjamin2507d9e2017-07-26 11:39:38 -040049 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 ${C_CXX_FLAGS} -Wmissing-declarations")
50
51 if(NOT BORINGSSL_ALLOW_CXX_RUNTIME)
52 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fno-exceptions -fno-rtti")
53 endif()
54
David Benjamin4a8d1f32017-07-13 17:53:07 -040055 # In GCC, -Wmissing-declarations is the C++ spelling of -Wmissing-prototypes
56 # and using the wrong one is an error. In Clang, -Wmissing-prototypes is the
57 # spelling for both and -Wmissing-declarations is some other warning.
58 #
59 # https://gcc.gnu.org/onlinedocs/gcc-7.1.0/gcc/Warning-Options.html#Warning-Options
60 # https://clang.llvm.org/docs/DiagnosticsReference.html#wmissing-prototypes
61 # https://clang.llvm.org/docs/DiagnosticsReference.html#wmissing-declarations
62 if(CMAKE_CXX_COMPILER_ID MATCHES "Clang")
David Benjamin818031e2017-07-17 14:24:15 -040063 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wmissing-prototypes -Wimplicit-fallthrough")
David Benjamin4a8d1f32017-07-13 17:53:07 -040064 endif()
Adam Langley95c29f32014-06-20 12:00:00 -070065elseif(MSVC)
Brian Smithefed2212015-01-28 16:20:02 -080066 set(MSVC_DISABLED_WARNINGS_LIST
David Benjamin96628432017-01-19 19:05:47 -050067 "C4061" # enumerator 'identifier' in switch of enum 'enumeration' is not
68 # explicitly handled by a case label
69 # Disable this because it flags even when there is a default.
Brian Smithefed2212015-01-28 16:20:02 -080070 "C4100" # 'exarg' : unreferenced formal parameter
71 "C4127" # conditional expression is constant
72 "C4200" # nonstandard extension used : zero-sized array in
73 # struct/union.
David Benjaminffb11072016-11-13 10:32:10 +090074 "C4204" # nonstandard extension used: non-constant aggregate initializer
75 "C4221" # nonstandard extension used : 'identifier' : cannot be
76 # initialized using address of automatic variable
Brian Smithefed2212015-01-28 16:20:02 -080077 "C4242" # 'function' : conversion from 'int' to 'uint8_t',
78 # possible loss of data
79 "C4244" # 'function' : conversion from 'int' to 'uint8_t',
80 # possible loss of data
81 "C4245" # 'initializing' : conversion from 'long' to
82 # 'unsigned long', signed/unsigned mismatch
David Benjamin3673be72015-02-11 15:12:05 -050083 "C4267" # conversion from 'size_t' to 'int', possible loss of data
David Benjamin3673be72015-02-11 15:12:05 -050084 "C4371" # layout of class may have changed from a previous version of the
85 # compiler due to better packing of member '...'
86 "C4388" # signed/unsigned mismatch
Brian Smithefed2212015-01-28 16:20:02 -080087 "C4296" # '>=' : expression is always true
88 "C4350" # behavior change: 'std::_Wrap_alloc...'
89 "C4365" # '=' : conversion from 'size_t' to 'int',
90 # signed/unsigned mismatch
91 "C4389" # '!=' : signed/unsigned mismatch
David Benjamin7acd6bc2016-05-02 12:57:01 -040092 "C4464" # relative include path contains '..'
Brian Smithefed2212015-01-28 16:20:02 -080093 "C4510" # 'argument' : default constructor could not be generated
94 "C4512" # 'argument' : assignment operator could not be generated
95 "C4514" # 'function': unreferenced inline function has been removed
96 "C4548" # expression before comma has no effect; expected expression with
97 # side-effect" caused by FD_* macros.
98 "C4610" # struct 'argument' can never be instantiated - user defined
99 # constructor required.
David Benjamin7acd6bc2016-05-02 12:57:01 -0400100 "C4623" # default constructor was implicitly defined as deleted
David Benjamin3673be72015-02-11 15:12:05 -0500101 "C4625" # copy constructor could not be generated because a base class
102 # copy constructor is inaccessible or deleted
103 "C4626" # assignment operator could not be generated because a base class
104 # assignment operator is inaccessible or deleted
David Benjamin96628432017-01-19 19:05:47 -0500105 "C4668" # 'symbol' is not defined as a preprocessor macro, replacing with
106 # '0' for 'directives'
107 # Disable this because GTest uses it everywhere.
Brian Smithefed2212015-01-28 16:20:02 -0800108 "C4706" # assignment within conditional expression
109 "C4710" # 'function': function not inlined
110 "C4711" # function 'function' selected for inline expansion
111 "C4800" # 'int' : forcing value to bool 'true' or 'false'
112 # (performance warning)
113 "C4820" # 'bytes' bytes padding added after construct 'member_name'
David Benjamin96628432017-01-19 19:05:47 -0500114 "C5026" # move constructor was implicitly defined as deleted
David Benjamin7acd6bc2016-05-02 12:57:01 -0400115 "C5027" # move assignment operator was implicitly defined as deleted
116 )
117 set(MSVC_LEVEL4_WARNINGS_LIST
118 # See https://connect.microsoft.com/VisualStudio/feedback/details/1217660/warning-c4265-when-using-functional-header
119 "C4265" # class has virtual functions, but destructor is not virtual
120 )
Brian Smithefed2212015-01-28 16:20:02 -0800121 string(REPLACE "C" " -wd" MSVC_DISABLED_WARNINGS_STR
122 ${MSVC_DISABLED_WARNINGS_LIST})
David Benjamin7acd6bc2016-05-02 12:57:01 -0400123 string(REPLACE "C" " -w4" MSVC_LEVEL4_WARNINGS_STR
124 ${MSVC_LEVEL4_WARNINGS_LIST})
Brian Smithdc6c1b82016-01-17 22:21:42 -1000125 set(CMAKE_C_FLAGS "-Wall -WX ${MSVC_DISABLED_WARNINGS_STR} ${MSVC_LEVEL4_WARNINGS_STR}")
126 set(CMAKE_CXX_FLAGS "-Wall -WX ${MSVC_DISABLED_WARNINGS_STR} ${MSVC_LEVEL4_WARNINGS_STR}")
David Benjamin72088222016-08-04 19:09:45 -0400127 set(CMAKE_ASM_NASM_FLAGS "-g cv8")
David Benjamine2568c42017-08-16 15:25:27 -0400128endif()
129
130if(WIN32)
Adam Langley4a0f0c42015-01-28 16:37:10 -0800131 add_definitions(-D_HAS_EXCEPTIONS=0)
Brian Smitha87de9b2015-01-28 20:34:47 -0800132 add_definitions(-DWIN32_LEAN_AND_MEAN)
David Benjamin0e434b92015-04-02 13:20:01 -0400133 add_definitions(-DNOMINMAX)
David Benjamin9b6ff442017-06-15 20:44:30 -0400134 # Allow use of fopen.
135 add_definitions(-D_CRT_SECURE_NO_WARNINGS)
136 # VS 2017 and higher supports STL-only warning suppressions.
137 add_definitions("-D_STL_EXTRA_DISABLED_WARNINGS=4774 4987")
Adam Langley95c29f32014-06-20 12:00:00 -0700138endif()
139
David Benjaminb826c0d2015-02-28 00:00:44 -0500140if((CMAKE_COMPILER_IS_GNUCXX AND CMAKE_C_COMPILER_VERSION VERSION_GREATER "4.7.99") OR
Brian Smith1d75c8b2015-01-23 17:25:44 -0800141 CMAKE_CXX_COMPILER_ID MATCHES "Clang")
Adam Langley4a0f0c42015-01-28 16:37:10 -0800142 set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wshadow")
143 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wshadow")
Adam Langley07100c62015-01-16 15:20:54 -0800144endif()
145
David Benjamin2e8ba2d2016-06-09 16:22:26 -0400146if(CMAKE_COMPILER_IS_GNUCXX)
147 if ((CMAKE_C_COMPILER_VERSION VERSION_GREATER "4.8.99") OR
148 CMAKE_CXX_COMPILER_ID MATCHES "Clang")
149 set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=c11")
150 else()
151 set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=c99")
152 endif()
153endif()
154
155# pthread_rwlock_t requires a feature flag.
156if(NOT WIN32)
157 set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -D_XOPEN_SOURCE=700")
Adam Langley6f2e7332015-05-15 12:01:29 -0700158endif()
159
Adam Langley9a4beb82015-11-09 13:57:26 -0800160if(FUZZ)
Alessandro Ghedinib6f69272016-09-28 22:14:01 +0100161 if(NOT CMAKE_CXX_COMPILER_ID MATCHES "Clang")
162 message(FATAL_ERROR "You need to build with Clang for fuzzing to work")
Adam Langley9a4beb82015-11-09 13:57:26 -0800163 endif()
164
David Benjaminec978dd2016-11-04 18:59:33 -0400165 add_definitions(-DBORINGSSL_UNSAFE_DETERMINISTIC_MODE)
166 set(RUNNER_ARGS "-deterministic")
167
168 if(NOT NO_FUZZER_MODE)
169 add_definitions(-DBORINGSSL_UNSAFE_FUZZER_MODE)
170 set(RUNNER_ARGS ${RUNNER_ARGS} "-fuzzer" "-shim-config" "fuzzer_mode.json")
171 endif()
David Benjaminbc5b2a22016-03-01 22:57:32 -0500172
David Benjamin08ab59b2017-05-10 12:02:58 -0400173 set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fsanitize=address -fsanitize-coverage=edge,indirect-calls,trace-pc-guard")
174 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fsanitize=address -fsanitize-coverage=edge,indirect-calls,trace-pc-guard")
Adam Langley9a4beb82015-11-09 13:57:26 -0800175 set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_C_FLAGS} -fsanitize=address")
Adam Langley7104cc92015-11-10 15:00:51 -0800176 link_directories(.)
Adam Langley9a4beb82015-11-09 13:57:26 -0800177endif()
178
Adam Langleyeb7d2ed2014-07-30 16:02:14 -0700179add_definitions(-DBORINGSSL_IMPLEMENTATION)
180
David Benjamin507c1ee2015-01-28 00:50:21 -0500181if (BUILD_SHARED_LIBS)
Adam Langley4a0f0c42015-01-28 16:37:10 -0800182 add_definitions(-DBORINGSSL_SHARED_LIBRARY)
183 # Enable position-independent code globally. This is needed because
184 # some library targets are OBJECT libraries.
185 set(CMAKE_POSITION_INDEPENDENT_CODE TRUE)
David Benjamin507c1ee2015-01-28 00:50:21 -0500186endif()
187
Adam Langley1bcd10c2016-12-16 10:48:23 -0800188if (MSAN)
189 if(NOT CMAKE_CXX_COMPILER_ID MATCHES "Clang")
190 message(FATAL_ERROR "Cannot enable MSAN unless using Clang")
191 endif()
192
193 if (ASAN)
194 message(FATAL_ERROR "ASAN and MSAN are mutually exclusive")
195 endif()
196
197 set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fsanitize=memory -fsanitize-memory-track-origins -fno-omit-frame-pointer")
198 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fsanitize=memory -fsanitize-memory-track-origins -fno-omit-frame-pointer")
199 set(OPENSSL_NO_ASM "1")
200endif()
201
202if (ASAN)
203 if(NOT CMAKE_CXX_COMPILER_ID MATCHES "Clang")
204 message(FATAL_ERROR "Cannot enable ASAN unless using Clang")
205 endif()
206
David Benjamin0d3c9632017-02-28 14:58:00 -0500207 set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fsanitize=address -fsanitize-address-use-after-scope -fno-omit-frame-pointer")
208 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fsanitize=address -fsanitize-address-use-after-scope -fno-omit-frame-pointer")
Adam Langley1bcd10c2016-12-16 10:48:23 -0800209 set(OPENSSL_NO_ASM "1")
210endif()
211
David Benjamind035ab32016-12-27 12:15:56 -0500212if (GCOV)
213 set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fprofile-arcs -ftest-coverage")
214 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fprofile-arcs -ftest-coverage")
215endif()
216
David Benjaminaff72a32017-04-06 23:26:04 -0400217if(FIPS)
218 add_definitions(-DBORINGSSL_FIPS)
Adam Langleyf64a6ee2017-05-17 13:05:50 -0700219 if(FIPS_BREAK_TEST)
220 add_definitions("-DBORINGSSL_FIPS_BREAK_${FIPS_BREAK_TEST}=1")
221 endif()
222 # Delocate does not work for ASan and MSan builds.
223 if(NOT ASAN AND NOT MSAN)
224 set(FIPS_DELOCATE "1")
225 endif()
David Benjaminaff72a32017-04-06 23:26:04 -0400226endif()
227
228# CMake's iOS support uses Apple's multiple-architecture toolchain. It takes an
229# architecture list from CMAKE_OSX_ARCHITECTURES, leaves CMAKE_SYSTEM_PROCESSOR
230# alone, and expects all architecture-specific logic to be conditioned within
231# the source files rather than the build. This does not work for our assembly
232# files, so we fix CMAKE_SYSTEM_PROCESSOR and only support single-architecture
233# builds.
234if (NOT OPENSSL_NO_ASM AND CMAKE_OSX_ARCHITECTURES)
235 list(LENGTH CMAKE_OSX_ARCHITECTURES NUM_ARCHES)
236 if (NOT ${NUM_ARCHES} EQUAL 1)
237 message(FATAL_ERROR "Universal binaries not supported.")
238 endif()
239 list(GET CMAKE_OSX_ARCHITECTURES 0 CMAKE_SYSTEM_PROCESSOR)
240endif()
241
David Benjamin27b08e92015-05-04 15:16:57 -0400242if (OPENSSL_NO_ASM)
243 add_definitions(-DOPENSSL_NO_ASM)
244 set(ARCH "generic")
David Benjaminaff72a32017-04-06 23:26:04 -0400245elseif (${CMAKE_SYSTEM_PROCESSOR} STREQUAL "x86_64")
246 set(ARCH "x86_64")
247elseif (${CMAKE_SYSTEM_PROCESSOR} STREQUAL "amd64")
248 set(ARCH "x86_64")
249elseif (${CMAKE_SYSTEM_PROCESSOR} STREQUAL "AMD64")
250 # cmake reports AMD64 on Windows, but we might be building for 32-bit.
251 if (CMAKE_CL_64)
252 set(ARCH "x86_64")
253 else()
254 set(ARCH "x86")
255 endif()
256elseif (${CMAKE_SYSTEM_PROCESSOR} STREQUAL "x86")
257 set(ARCH "x86")
258elseif (${CMAKE_SYSTEM_PROCESSOR} STREQUAL "i386")
259 set(ARCH "x86")
260elseif (${CMAKE_SYSTEM_PROCESSOR} STREQUAL "i686")
261 set(ARCH "x86")
262elseif (${CMAKE_SYSTEM_PROCESSOR} STREQUAL "aarch64")
263 set(ARCH "aarch64")
264elseif (${CMAKE_SYSTEM_PROCESSOR} STREQUAL "arm64")
265 set(ARCH "aarch64")
266elseif (${CMAKE_SYSTEM_PROCESSOR} MATCHES "^arm*")
267 set(ARCH "arm")
268elseif (${CMAKE_SYSTEM_PROCESSOR} STREQUAL "mips")
269 # Just to avoid the “unknown processor” error.
270 set(ARCH "generic")
271elseif (${CMAKE_SYSTEM_PROCESSOR} STREQUAL "ppc64le")
272 set(ARCH "ppc64le")
273else()
274 message(FATAL_ERROR "Unknown processor:" ${CMAKE_SYSTEM_PROCESSOR})
David Benjamin27b08e92015-05-04 15:16:57 -0400275endif()
276
David Benjaminaff72a32017-04-06 23:26:04 -0400277if (ANDROID AND ${ARCH} STREQUAL "arm")
278 # The Android-NDK CMake files somehow fail to set the -march flag for
279 # assembly files. Without this flag, the compiler believes that it's
280 # building for ARMv5.
281 set(CMAKE_ASM_FLAGS "${CMAKE_ASM_FLAGS} -march=${CMAKE_SYSTEM_PROCESSOR}")
282endif()
283
284if (${ARCH} STREQUAL "x86" AND APPLE)
285 # With CMake 2.8.x, ${CMAKE_SYSTEM_PROCESSOR} evalutes to i386 on OS X,
286 # but clang defaults to 64-bit builds on OS X unless otherwise told.
287 # Set ARCH to x86_64 so clang and CMake agree. This is fixed in CMake 3.
288 set(ARCH "x86_64")
Adam Langleyfd499932017-04-04 14:21:43 -0700289endif()
290
David Benjamin96628432017-01-19 19:05:47 -0500291# Add minimal googletest targets. The provided one has many side-effects, and
292# googletest has a very straightforward build.
293add_library(gtest third_party/googletest/src/gtest-all.cc)
294target_include_directories(gtest PRIVATE third_party/googletest)
David Benjamin96628432017-01-19 19:05:47 -0500295
296include_directories(third_party/googletest/include)
297
David Benjamin301afaf2015-10-14 21:34:40 -0400298# Declare a dummy target to build all unit tests. Test targets should inject
299# themselves as dependencies next to the target definition.
300add_custom_target(all_tests)
301
David Benjamin3ecd0a52017-05-19 15:26:18 -0400302add_custom_command(
303 OUTPUT crypto_test_data.cc
304 COMMAND ${GO_EXECUTABLE} run util/embed_test_data.go ${CRYPTO_TEST_DATA} >
305 ${CMAKE_CURRENT_BINARY_DIR}/crypto_test_data.cc
306 DEPENDS util/embed_test_data.go ${CRYPTO_TEST_DATA}
307 WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR})
308
309add_library(crypto_test_data OBJECT crypto_test_data.cc)
310
Adam Langley95c29f32014-06-20 12:00:00 -0700311add_subdirectory(crypto)
312add_subdirectory(ssl)
313add_subdirectory(ssl/test)
Martin Kreichgauer118355c2017-05-12 15:34:45 -0700314add_subdirectory(fipstools)
Adam Langley95c29f32014-06-20 12:00:00 -0700315add_subdirectory(tool)
Adam Langleyc004dfc2015-02-03 10:45:12 -0800316add_subdirectory(decrepit)
David Benjamin301afaf2015-10-14 21:34:40 -0400317
Adam Langley9a4beb82015-11-09 13:57:26 -0800318if(FUZZ)
David Benjamin1e5cb822017-05-10 16:07:56 -0400319 if(LIBFUZZER_FROM_DEPS)
320 file(GLOB LIBFUZZER_SOURCES "util/bot/libFuzzer/*.cpp")
321 add_library(Fuzzer STATIC ${LIBFUZZER_SOURCES})
322 # libFuzzer does not pass our aggressive warnings. It also must be built
323 # without -fsanitize-coverage options or clang crashes.
David Benjamin6fb16cc2017-07-14 11:02:39 -0400324 set_target_properties(Fuzzer PROPERTIES COMPILE_FLAGS "-Wno-shadow -Wno-format-nonliteral -Wno-missing-prototypes -fsanitize-coverage=0")
David Benjamin1e5cb822017-05-10 16:07:56 -0400325 endif()
326
Adam Langley9a4beb82015-11-09 13:57:26 -0800327 add_subdirectory(fuzz)
328endif()
329
David Benjamin301afaf2015-10-14 21:34:40 -0400330if (NOT ${CMAKE_VERSION} VERSION_LESS "3.2")
331 # USES_TERMINAL is only available in CMake 3.2 or later.
332 set(MAYBE_USES_TERMINAL USES_TERMINAL)
333endif()
334
335add_custom_target(
336 run_tests
337 COMMAND ${GO_EXECUTABLE} run util/all_tests.go -build-dir
338 ${CMAKE_BINARY_DIR}
Adam Langleyd5c72c82016-09-23 16:43:17 -0700339 COMMAND cd ssl/test/runner &&
340 ${GO_EXECUTABLE} test -shim-path $<TARGET_FILE:bssl_shim>
341 ${RUNNER_ARGS}
David Benjamin301afaf2015-10-14 21:34:40 -0400342 WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
343 DEPENDS all_tests bssl_shim
344 ${MAYBE_USES_TERMINAL})