Skip to content

Commit dc78ce3

Browse files
committed
security: emit warning if no proper backend is enabled
1 parent a99bade commit dc78ce3

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

vanetza/security/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,5 +84,9 @@ if(TARGET OpenSSL::Crypto)
8484
target_compile_definitions(security PRIVATE "OPENSSL_API_COMPAT=0x10101000L")
8585
endif()
8686

87+
if(NOT TARGET CryptoPP::CryptoPP AND NOT TARGET OpenSSL::Crypto)
88+
message(WARNING "Vanetza is built without proper security backend")
89+
endif()
90+
8791
add_test_subdirectory(tests)
8892
add_test_subdirectory(v3/tests)

0 commit comments

Comments
 (0)