Skip to content

Commit 7045ae1

Browse files
npaunanonrig
authored andcommitted
Update cmake config to match bazel config
1 parent 82dc8ab commit 7045ae1

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ include(cmake/CPM.cmake)
1515

1616
CPMAddPackage(
1717
NAME boringssl
18-
VERSION 0.20250114.0
18+
VERSION 0.20250818.0
1919
GITHUB_REPOSITORY google/boringssl
20-
GIT_TAG 0.20250114.0
20+
GIT_TAG 0.20250818.0
2121
OPTIONS "BUILD_SHARED_LIBS OFF" "BUILD_TESTING OFF"
2222
)
2323
add_subdirectory(src)

cmake/ncrypto-flags.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
option(NCRYPTO_DEVELOPMENT_CHECKS "development checks (useful for debugging)" OFF)
22
option(NCRYPTO_TESTING "Build tests" ON)
3+
option(NCRYPTO_BSSL_LIBDECREPIT_MISSING "enable if boringssl is built without libdecrepit" OFF)
34

45
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
56
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)

src/CMakeLists.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
add_library(ncrypto ncrypto.cpp engine.cpp)
22
target_link_libraries(ncrypto PUBLIC ssl crypto)
3+
4+
if (NCRYPTO_BSSL_LIBDECREPIT_MISSING)
5+
target_compile_definitions(ncrypto PUBLIC NCRYPTO_BSSL_LIBDECREPIT_MISSING=1)
6+
else()
7+
target_link_libraries(ncrypto PUBLIC decrepit)
8+
endif()
9+
310
target_include_directories(ncrypto
411
PUBLIC
512
$<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/include>

0 commit comments

Comments
 (0)