From 549f251dda51618a6fafc3a20b57f1a5a47b4dcf Mon Sep 17 00:00:00 2001 From: ffarinon Date: Mon, 3 Jun 2024 23:50:16 -0400 Subject: [PATCH] fix: append test data dir definition instead of overriding previous compilation definitions #118 --- cryptopp/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cryptopp/CMakeLists.txt b/cryptopp/CMakeLists.txt index 15619df..9e5bedf 100644 --- a/cryptopp/CMakeLists.txt +++ b/cryptopp/CMakeLists.txt @@ -1448,7 +1448,7 @@ if(CRYPTOPP_BUILD_TESTING) add_executable(cryptest ${cryptopp_SOURCES_TEST}) target_link_libraries(cryptest PRIVATE cryptopp::cryptopp) - set_source_files_properties( + set_property(SOURCE ${cryptopp_SOURCE_DIR}/bench3.cpp ${cryptopp_SOURCE_DIR}/datatest.cpp ${cryptopp_SOURCE_DIR}/test.cpp @@ -1457,7 +1457,7 @@ if(CRYPTOPP_BUILD_TESTING) ${cryptopp_SOURCE_DIR}/validat7.cpp ${cryptopp_SOURCE_DIR}/validat8.cpp ${cryptopp_SOURCE_DIR}/validat9.cpp - PROPERTIES + APPEND PROPERTY COMPILE_DEFINITIONS CRYPTOPP_DATA_DIR="${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_DATAROOTDIR}/cryptopp/" )