Define LTM_DESC for all users of libtomcrypt, otherwise the header won't

have init_LTM available.
This commit is contained in:
darkf 2020-04-06 01:10:57 -07:00
parent fed6245e48
commit 5502d84057
1 changed files with 2 additions and 1 deletions

View File

@ -12,7 +12,6 @@ if ("${CMAKE_C_COMPILER_ID}" STREQUAL "MSVC")
endif()
add_compile_definitions(
LTM_DESC
LTC_SOURCE
LTC_NO_TEST
LTC_NO_PROTOTYPES
@ -461,6 +460,8 @@ source_group(TREE ${CXBXR_ROOT_DIR}/import/libtomcrypt/src PREFIX source FILES $
add_library(libtomcrypt ${HEADERS} ${SOURCES})
target_compile_definitions(libtomcrypt PUBLIC LTM_DESC=1)
target_link_libraries(libtomcrypt
PUBLIC libtommath