David Benjamin | f31229b | 2017-01-25 14:08:15 -0500 | [diff] [blame] | 1 | cmake_minimum_required (VERSION 2.8.11) |
Adam Langley | d9e397b | 2015-01-22 14:27:53 -0800 | [diff] [blame] | 2 | |
David Benjamin | 4969cc9 | 2016-04-22 15:02:23 -0400 | [diff] [blame] | 3 | # Defer enabling C and CXX languages. |
| 4 | project (BoringSSL NONE) |
| 5 | |
| 6 | if(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) |
| 10 | endif() |
| 11 | |
| 12 | enable_language(C) |
| 13 | enable_language(CXX) |
Adam Langley | d9e397b | 2015-01-22 14:27:53 -0800 | [diff] [blame] | 14 | |
Adam Langley | e9ada86 | 2015-05-11 17:20:37 -0700 | [diff] [blame] | 15 | if(ANDROID) |
| 16 | # Android-NDK CMake files reconfigure the path and so Go and Perl won't be |
| 17 | # found. However, ninja will still find them in $PATH if we just name them. |
David Benjamin | d316cba | 2016-06-02 16:17:39 -0400 | [diff] [blame] | 18 | if(NOT PERL_EXECUTABLE) |
| 19 | set(PERL_EXECUTABLE "perl") |
| 20 | endif() |
| 21 | if(NOT GO_EXECUTABLE) |
| 22 | set(GO_EXECUTABLE "go") |
| 23 | endif() |
Adam Langley | e9ada86 | 2015-05-11 17:20:37 -0700 | [diff] [blame] | 24 | else() |
| 25 | find_package(Perl REQUIRED) |
| 26 | find_program(GO_EXECUTABLE go) |
| 27 | endif() |
| 28 | |
| 29 | if (NOT GO_EXECUTABLE) |
| 30 | message(FATAL_ERROR "Could not find Go") |
| 31 | endif() |
| 32 | |
Adam Langley | d9e397b | 2015-01-22 14:27:53 -0800 | [diff] [blame] | 33 | if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang") |
David Benjamin | c895d6b | 2016-08-11 13:26:41 -0400 | [diff] [blame] | 34 | set(C_CXX_FLAGS "-Wall -Werror -Wformat=2 -Wsign-compare -Wmissing-field-initializers -Wwrite-strings -ggdb -fvisibility=hidden -fno-common") |
David Benjamin | f0c4a6c | 2016-08-11 13:26:41 -0400 | [diff] [blame] | 35 | if(CMAKE_CXX_COMPILER_ID MATCHES "Clang") |
| 36 | set(C_CXX_FLAGS "${C_CXX_FLAGS} -Wnewline-eof") |
| 37 | endif() |
David Benjamin | c895d6b | 2016-08-11 13:26:41 -0400 | [diff] [blame] | 38 | set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${C_CXX_FLAGS} -Wmissing-prototypes -Wold-style-definition -Wstrict-prototypes") |
| 39 | set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 ${C_CXX_FLAGS} -Wmissing-declarations") |
David Benjamin | 7c0d06c | 2016-08-11 13:26:41 -0400 | [diff] [blame] | 40 | # Clang's integerated assembler does not support debug symbols. |
| 41 | if(NOT CMAKE_CXX_COMPILER_ID MATCHES "Clang") |
| 42 | set(CMAKE_ASM_FLAGS "${CMAKE_ASM_FLAGS} -Wa,-g") |
| 43 | endif() |
Adam Langley | d9e397b | 2015-01-22 14:27:53 -0800 | [diff] [blame] | 44 | elseif(MSVC) |
| 45 | set(MSVC_DISABLED_WARNINGS_LIST |
David Benjamin | f31229b | 2017-01-25 14:08:15 -0500 | [diff] [blame] | 46 | "C4061" # enumerator 'identifier' in switch of enum 'enumeration' is not |
| 47 | # explicitly handled by a case label |
| 48 | # Disable this because it flags even when there is a default. |
Adam Langley | d9e397b | 2015-01-22 14:27:53 -0800 | [diff] [blame] | 49 | "C4100" # 'exarg' : unreferenced formal parameter |
| 50 | "C4127" # conditional expression is constant |
| 51 | "C4200" # nonstandard extension used : zero-sized array in |
| 52 | # struct/union. |
Steven Valdez | 909b19f | 2016-11-21 15:35:44 -0500 | [diff] [blame] | 53 | "C4204" # nonstandard extension used: non-constant aggregate initializer |
| 54 | "C4221" # nonstandard extension used : 'identifier' : cannot be |
| 55 | # initialized using address of automatic variable |
Adam Langley | d9e397b | 2015-01-22 14:27:53 -0800 | [diff] [blame] | 56 | "C4242" # 'function' : conversion from 'int' to 'uint8_t', |
| 57 | # possible loss of data |
| 58 | "C4244" # 'function' : conversion from 'int' to 'uint8_t', |
| 59 | # possible loss of data |
| 60 | "C4245" # 'initializing' : conversion from 'long' to |
| 61 | # 'unsigned long', signed/unsigned mismatch |
Adam Langley | e9ada86 | 2015-05-11 17:20:37 -0700 | [diff] [blame] | 62 | "C4267" # conversion from 'size_t' to 'int', possible loss of data |
| 63 | "C4371" # layout of class may have changed from a previous version of the |
| 64 | # compiler due to better packing of member '...' |
| 65 | "C4388" # signed/unsigned mismatch |
Adam Langley | d9e397b | 2015-01-22 14:27:53 -0800 | [diff] [blame] | 66 | "C4296" # '>=' : expression is always true |
| 67 | "C4350" # behavior change: 'std::_Wrap_alloc...' |
| 68 | "C4365" # '=' : conversion from 'size_t' to 'int', |
| 69 | # signed/unsigned mismatch |
| 70 | "C4389" # '!=' : signed/unsigned mismatch |
David Benjamin | 9aaebef | 2016-04-22 15:02:23 -0400 | [diff] [blame] | 71 | "C4464" # relative include path contains '..' |
Adam Langley | d9e397b | 2015-01-22 14:27:53 -0800 | [diff] [blame] | 72 | "C4510" # 'argument' : default constructor could not be generated |
| 73 | "C4512" # 'argument' : assignment operator could not be generated |
| 74 | "C4514" # 'function': unreferenced inline function has been removed |
| 75 | "C4548" # expression before comma has no effect; expected expression with |
| 76 | # side-effect" caused by FD_* macros. |
| 77 | "C4610" # struct 'argument' can never be instantiated - user defined |
| 78 | # constructor required. |
David Benjamin | 9aaebef | 2016-04-22 15:02:23 -0400 | [diff] [blame] | 79 | "C4623" # default constructor was implicitly defined as deleted |
Adam Langley | e9ada86 | 2015-05-11 17:20:37 -0700 | [diff] [blame] | 80 | "C4625" # copy constructor could not be generated because a base class |
| 81 | # copy constructor is inaccessible or deleted |
| 82 | "C4626" # assignment operator could not be generated because a base class |
| 83 | # assignment operator is inaccessible or deleted |
David Benjamin | f31229b | 2017-01-25 14:08:15 -0500 | [diff] [blame] | 84 | "C4668" # 'symbol' is not defined as a preprocessor macro, replacing with |
| 85 | # '0' for 'directives' |
| 86 | # Disable this because GTest uses it everywhere. |
Adam Langley | d9e397b | 2015-01-22 14:27:53 -0800 | [diff] [blame] | 87 | "C4706" # assignment within conditional expression |
| 88 | "C4710" # 'function': function not inlined |
| 89 | "C4711" # function 'function' selected for inline expansion |
| 90 | "C4800" # 'int' : forcing value to bool 'true' or 'false' |
| 91 | # (performance warning) |
| 92 | "C4820" # 'bytes' bytes padding added after construct 'member_name' |
David Benjamin | f31229b | 2017-01-25 14:08:15 -0500 | [diff] [blame] | 93 | "C5026" # move constructor was implicitly defined as deleted |
David Benjamin | 9aaebef | 2016-04-22 15:02:23 -0400 | [diff] [blame] | 94 | "C5027" # move assignment operator was implicitly defined as deleted |
| 95 | ) |
| 96 | set(MSVC_LEVEL4_WARNINGS_LIST |
| 97 | # See https://connect.microsoft.com/VisualStudio/feedback/details/1217660/warning-c4265-when-using-functional-header |
| 98 | "C4265" # class has virtual functions, but destructor is not virtual |
| 99 | ) |
Adam Langley | d9e397b | 2015-01-22 14:27:53 -0800 | [diff] [blame] | 100 | string(REPLACE "C" " -wd" MSVC_DISABLED_WARNINGS_STR |
| 101 | ${MSVC_DISABLED_WARNINGS_LIST}) |
David Benjamin | 9aaebef | 2016-04-22 15:02:23 -0400 | [diff] [blame] | 102 | string(REPLACE "C" " -w4" MSVC_LEVEL4_WARNINGS_STR |
| 103 | ${MSVC_LEVEL4_WARNINGS_LIST}) |
David Benjamin | 4969cc9 | 2016-04-22 15:02:23 -0400 | [diff] [blame] | 104 | set(CMAKE_C_FLAGS "-Wall -WX ${MSVC_DISABLED_WARNINGS_STR} ${MSVC_LEVEL4_WARNINGS_STR}") |
| 105 | set(CMAKE_CXX_FLAGS "-Wall -WX ${MSVC_DISABLED_WARNINGS_STR} ${MSVC_LEVEL4_WARNINGS_STR}") |
David Benjamin | 7c0d06c | 2016-08-11 13:26:41 -0400 | [diff] [blame] | 106 | set(CMAKE_ASM_NASM_FLAGS "-g cv8") |
Adam Langley | d9e397b | 2015-01-22 14:27:53 -0800 | [diff] [blame] | 107 | add_definitions(-D_HAS_EXCEPTIONS=0) |
| 108 | add_definitions(-DWIN32_LEAN_AND_MEAN) |
Adam Langley | e9ada86 | 2015-05-11 17:20:37 -0700 | [diff] [blame] | 109 | add_definitions(-DNOMINMAX) |
David Benjamin | d316cba | 2016-06-02 16:17:39 -0400 | [diff] [blame] | 110 | add_definitions(-D_CRT_SECURE_NO_WARNINGS) # Allow use of fopen |
Adam Langley | d9e397b | 2015-01-22 14:27:53 -0800 | [diff] [blame] | 111 | endif() |
| 112 | |
Adam Langley | e9ada86 | 2015-05-11 17:20:37 -0700 | [diff] [blame] | 113 | if((CMAKE_COMPILER_IS_GNUCXX AND CMAKE_C_COMPILER_VERSION VERSION_GREATER "4.7.99") OR |
Adam Langley | d9e397b | 2015-01-22 14:27:53 -0800 | [diff] [blame] | 114 | CMAKE_CXX_COMPILER_ID MATCHES "Clang") |
| 115 | set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wshadow") |
| 116 | set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wshadow") |
| 117 | endif() |
| 118 | |
David Benjamin | 6e899c7 | 2016-06-09 18:02:18 -0400 | [diff] [blame] | 119 | if(CMAKE_COMPILER_IS_GNUCXX) |
| 120 | if ((CMAKE_C_COMPILER_VERSION VERSION_GREATER "4.8.99") OR |
| 121 | CMAKE_CXX_COMPILER_ID MATCHES "Clang") |
| 122 | set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=c11") |
| 123 | else() |
| 124 | set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=c99") |
| 125 | endif() |
| 126 | endif() |
| 127 | |
| 128 | # pthread_rwlock_t requires a feature flag. |
| 129 | if(NOT WIN32) |
| 130 | set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -D_XOPEN_SOURCE=700") |
Adam Langley | f4e4272 | 2015-06-04 17:45:09 -0700 | [diff] [blame] | 131 | endif() |
| 132 | |
Adam Langley | fad6327 | 2015-11-12 12:15:39 -0800 | [diff] [blame] | 133 | if(FUZZ) |
Steven Valdez | bb1ceac | 2016-10-07 10:34:51 -0400 | [diff] [blame] | 134 | if(NOT CMAKE_CXX_COMPILER_ID MATCHES "Clang") |
| 135 | message(FATAL_ERROR "You need to build with Clang for fuzzing to work") |
Adam Langley | fad6327 | 2015-11-12 12:15:39 -0800 | [diff] [blame] | 136 | endif() |
| 137 | |
Steven Valdez | 909b19f | 2016-11-21 15:35:44 -0500 | [diff] [blame] | 138 | add_definitions(-DBORINGSSL_UNSAFE_DETERMINISTIC_MODE) |
| 139 | set(RUNNER_ARGS "-deterministic") |
| 140 | |
| 141 | if(NOT NO_FUZZER_MODE) |
| 142 | add_definitions(-DBORINGSSL_UNSAFE_FUZZER_MODE) |
| 143 | set(RUNNER_ARGS ${RUNNER_ARGS} "-fuzzer" "-shim-config" "fuzzer_mode.json") |
| 144 | endif() |
David Benjamin | 4969cc9 | 2016-04-22 15:02:23 -0400 | [diff] [blame] | 145 | |
| 146 | set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fsanitize=address -fsanitize-coverage=edge,indirect-calls,8bit-counters") |
| 147 | set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fsanitize=address -fsanitize-coverage=edge,indirect-calls,8bit-counters") |
Adam Langley | fad6327 | 2015-11-12 12:15:39 -0800 | [diff] [blame] | 148 | set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_C_FLAGS} -fsanitize=address") |
| 149 | link_directories(.) |
| 150 | endif() |
| 151 | |
Adam Langley | d9e397b | 2015-01-22 14:27:53 -0800 | [diff] [blame] | 152 | add_definitions(-DBORINGSSL_IMPLEMENTATION) |
| 153 | |
| 154 | if (BUILD_SHARED_LIBS) |
| 155 | add_definitions(-DBORINGSSL_SHARED_LIBRARY) |
| 156 | # Enable position-independent code globally. This is needed because |
| 157 | # some library targets are OBJECT libraries. |
| 158 | set(CMAKE_POSITION_INDEPENDENT_CODE TRUE) |
| 159 | endif() |
| 160 | |
Robert Sloan | 69939df | 2017-01-09 10:53:07 -0800 | [diff] [blame] | 161 | if (MSAN) |
| 162 | if(NOT CMAKE_CXX_COMPILER_ID MATCHES "Clang") |
| 163 | message(FATAL_ERROR "Cannot enable MSAN unless using Clang") |
| 164 | endif() |
| 165 | |
| 166 | if (ASAN) |
| 167 | message(FATAL_ERROR "ASAN and MSAN are mutually exclusive") |
| 168 | endif() |
| 169 | |
| 170 | set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fsanitize=memory -fsanitize-memory-track-origins -fno-omit-frame-pointer") |
| 171 | set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fsanitize=memory -fsanitize-memory-track-origins -fno-omit-frame-pointer") |
| 172 | set(OPENSSL_NO_ASM "1") |
| 173 | endif() |
| 174 | |
| 175 | if (ASAN) |
| 176 | if(NOT CMAKE_CXX_COMPILER_ID MATCHES "Clang") |
| 177 | message(FATAL_ERROR "Cannot enable ASAN unless using Clang") |
| 178 | endif() |
| 179 | |
Robert Sloan | 7d422bc | 2017-03-06 10:04:29 -0800 | [diff] [blame] | 180 | set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fsanitize=address -fsanitize-address-use-after-scope -fno-omit-frame-pointer") |
| 181 | set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fsanitize=address -fsanitize-address-use-after-scope -fno-omit-frame-pointer") |
Robert Sloan | 69939df | 2017-01-09 10:53:07 -0800 | [diff] [blame] | 182 | set(OPENSSL_NO_ASM "1") |
| 183 | endif() |
| 184 | |
| 185 | if (GCOV) |
| 186 | set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fprofile-arcs -ftest-coverage") |
| 187 | set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fprofile-arcs -ftest-coverage") |
| 188 | endif() |
| 189 | |
Robert Sloan | 572a4e2 | 2017-04-17 10:52:19 -0700 | [diff] [blame] | 190 | if(FIPS) |
| 191 | add_definitions(-DBORINGSSL_FIPS) |
| 192 | endif() |
| 193 | |
| 194 | # CMake's iOS support uses Apple's multiple-architecture toolchain. It takes an |
| 195 | # architecture list from CMAKE_OSX_ARCHITECTURES, leaves CMAKE_SYSTEM_PROCESSOR |
| 196 | # alone, and expects all architecture-specific logic to be conditioned within |
| 197 | # the source files rather than the build. This does not work for our assembly |
| 198 | # files, so we fix CMAKE_SYSTEM_PROCESSOR and only support single-architecture |
| 199 | # builds. |
| 200 | if (NOT OPENSSL_NO_ASM AND CMAKE_OSX_ARCHITECTURES) |
| 201 | list(LENGTH CMAKE_OSX_ARCHITECTURES NUM_ARCHES) |
| 202 | if (NOT ${NUM_ARCHES} EQUAL 1) |
| 203 | message(FATAL_ERROR "Universal binaries not supported.") |
| 204 | endif() |
| 205 | list(GET CMAKE_OSX_ARCHITECTURES 0 CMAKE_SYSTEM_PROCESSOR) |
| 206 | endif() |
| 207 | |
Adam Langley | e9ada86 | 2015-05-11 17:20:37 -0700 | [diff] [blame] | 208 | if (OPENSSL_NO_ASM) |
| 209 | add_definitions(-DOPENSSL_NO_ASM) |
| 210 | set(ARCH "generic") |
Robert Sloan | 572a4e2 | 2017-04-17 10:52:19 -0700 | [diff] [blame] | 211 | elseif (${CMAKE_SYSTEM_PROCESSOR} STREQUAL "x86_64") |
| 212 | set(ARCH "x86_64") |
| 213 | elseif (${CMAKE_SYSTEM_PROCESSOR} STREQUAL "amd64") |
| 214 | set(ARCH "x86_64") |
| 215 | elseif (${CMAKE_SYSTEM_PROCESSOR} STREQUAL "AMD64") |
| 216 | # cmake reports AMD64 on Windows, but we might be building for 32-bit. |
| 217 | if (CMAKE_CL_64) |
| 218 | set(ARCH "x86_64") |
| 219 | else() |
| 220 | set(ARCH "x86") |
| 221 | endif() |
| 222 | elseif (${CMAKE_SYSTEM_PROCESSOR} STREQUAL "x86") |
| 223 | set(ARCH "x86") |
| 224 | elseif (${CMAKE_SYSTEM_PROCESSOR} STREQUAL "i386") |
| 225 | set(ARCH "x86") |
| 226 | elseif (${CMAKE_SYSTEM_PROCESSOR} STREQUAL "i686") |
| 227 | set(ARCH "x86") |
| 228 | elseif (${CMAKE_SYSTEM_PROCESSOR} STREQUAL "aarch64") |
| 229 | set(ARCH "aarch64") |
| 230 | elseif (${CMAKE_SYSTEM_PROCESSOR} STREQUAL "arm64") |
| 231 | set(ARCH "aarch64") |
| 232 | elseif (${CMAKE_SYSTEM_PROCESSOR} MATCHES "^arm*") |
| 233 | set(ARCH "arm") |
| 234 | elseif (${CMAKE_SYSTEM_PROCESSOR} STREQUAL "mips") |
| 235 | # Just to avoid the “unknown processor” error. |
| 236 | set(ARCH "generic") |
| 237 | elseif (${CMAKE_SYSTEM_PROCESSOR} STREQUAL "ppc64le") |
| 238 | set(ARCH "ppc64le") |
| 239 | else() |
| 240 | message(FATAL_ERROR "Unknown processor:" ${CMAKE_SYSTEM_PROCESSOR}) |
| 241 | endif() |
| 242 | |
| 243 | if (ANDROID AND ${ARCH} STREQUAL "arm") |
| 244 | # The Android-NDK CMake files somehow fail to set the -march flag for |
| 245 | # assembly files. Without this flag, the compiler believes that it's |
| 246 | # building for ARMv5. |
| 247 | set(CMAKE_ASM_FLAGS "${CMAKE_ASM_FLAGS} -march=${CMAKE_SYSTEM_PROCESSOR}") |
| 248 | endif() |
| 249 | |
| 250 | if (${ARCH} STREQUAL "x86" AND APPLE) |
| 251 | # With CMake 2.8.x, ${CMAKE_SYSTEM_PROCESSOR} evalutes to i386 on OS X, |
| 252 | # but clang defaults to 64-bit builds on OS X unless otherwise told. |
| 253 | # Set ARCH to x86_64 so clang and CMake agree. This is fixed in CMake 3. |
| 254 | set(ARCH "x86_64") |
Adam Langley | e9ada86 | 2015-05-11 17:20:37 -0700 | [diff] [blame] | 255 | endif() |
| 256 | |
David Benjamin | f31229b | 2017-01-25 14:08:15 -0500 | [diff] [blame] | 257 | # Add minimal googletest targets. The provided one has many side-effects, and |
| 258 | # googletest has a very straightforward build. |
| 259 | add_library(gtest third_party/googletest/src/gtest-all.cc) |
| 260 | target_include_directories(gtest PRIVATE third_party/googletest) |
David Benjamin | f31229b | 2017-01-25 14:08:15 -0500 | [diff] [blame] | 261 | |
| 262 | include_directories(third_party/googletest/include) |
| 263 | |
Kenny Root | e99801b | 2015-11-06 15:31:15 -0800 | [diff] [blame] | 264 | # Declare a dummy target to build all unit tests. Test targets should inject |
| 265 | # themselves as dependencies next to the target definition. |
| 266 | add_custom_target(all_tests) |
| 267 | |
Adam Langley | d9e397b | 2015-01-22 14:27:53 -0800 | [diff] [blame] | 268 | add_subdirectory(crypto) |
| 269 | add_subdirectory(ssl) |
| 270 | add_subdirectory(ssl/test) |
Robert Sloan | 2424d84 | 2017-05-01 07:46:28 -0700 | [diff] [blame] | 271 | add_subdirectory(fipsoracle) |
Adam Langley | d9e397b | 2015-01-22 14:27:53 -0800 | [diff] [blame] | 272 | add_subdirectory(tool) |
Adam Langley | e9ada86 | 2015-05-11 17:20:37 -0700 | [diff] [blame] | 273 | add_subdirectory(decrepit) |
Kenny Root | e99801b | 2015-11-06 15:31:15 -0800 | [diff] [blame] | 274 | |
Adam Langley | fad6327 | 2015-11-12 12:15:39 -0800 | [diff] [blame] | 275 | if(FUZZ) |
| 276 | add_subdirectory(fuzz) |
| 277 | endif() |
| 278 | |
Kenny Root | e99801b | 2015-11-06 15:31:15 -0800 | [diff] [blame] | 279 | if (NOT ${CMAKE_VERSION} VERSION_LESS "3.2") |
| 280 | # USES_TERMINAL is only available in CMake 3.2 or later. |
| 281 | set(MAYBE_USES_TERMINAL USES_TERMINAL) |
| 282 | endif() |
| 283 | |
| 284 | add_custom_target( |
| 285 | run_tests |
| 286 | COMMAND ${GO_EXECUTABLE} run util/all_tests.go -build-dir |
| 287 | ${CMAKE_BINARY_DIR} |
Steven Valdez | bb1ceac | 2016-10-07 10:34:51 -0400 | [diff] [blame] | 288 | COMMAND cd ssl/test/runner && |
| 289 | ${GO_EXECUTABLE} test -shim-path $<TARGET_FILE:bssl_shim> |
| 290 | ${RUNNER_ARGS} |
Kenny Root | e99801b | 2015-11-06 15:31:15 -0800 | [diff] [blame] | 291 | WORKING_DIRECTORY ${CMAKE_SOURCE_DIR} |
| 292 | DEPENDS all_tests bssl_shim |
| 293 | ${MAYBE_USES_TERMINAL}) |