Skip to content

Commit

Permalink
CMakeLists.txt: Allow disabling EDDSA support from command line
Browse files Browse the repository at this point in the history
Signed-off-by: Alistair Francis <[email protected]>
  • Loading branch information
alistair23 authored and jyao1 committed Sep 18, 2023
1 parent 2332bc1 commit 102557f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,11 @@ else()
MESSAGE(FATAL_ERROR "Unknown CRYPTO")
endif()

if(DISABLE_EDDSA STREQUAL "1")
add_definitions(-DLIBSPDM_EDDSA_ED25519_SUPPORT=0)
add_definitions(-DLIBSPDM_EDDSA_ED448_SUPPORT=0)
endif()

if(ENABLE_BINARY_BUILD STREQUAL "1")
if(NOT CRYPTO STREQUAL "openssl")
MESSAGE(FATAL_ERROR "enabling binary build not supported for non-openssl")
Expand Down

0 comments on commit 102557f

Please sign in to comment.