From 6b22fe99b7ea3e27fafae946487d579bc5ddd266 Mon Sep 17 00:00:00 2001 From: Jukka Laitinen Date: Thu, 9 Sep 2021 14:40:01 +0300 Subject: [PATCH] Globally define -DPX4_CRYPTO when the board defines some crypto backend Signed-off-by: Jukka Laitinen --- cmake/px4_add_board.cmake | 1 + 1 file changed, 1 insertion(+) diff --git a/cmake/px4_add_board.cmake b/cmake/px4_add_board.cmake index f8d3c4dd34..6b7fd16188 100644 --- a/cmake/px4_add_board.cmake +++ b/cmake/px4_add_board.cmake @@ -277,6 +277,7 @@ function(px4_add_board) if(CRYPTO) set(PX4_CRYPTO ${CRYPTO} CACHE STRING "PX4 crypto implementation" FORCE) + add_definitions(-DPX4_CRYPTO) endif() if(KEYSTORE)