From 178a803fb6101d66a59a2e50fea79cb1a4482575 Mon Sep 17 00:00:00 2001 From: Moss Date: Sat, 1 Oct 2022 14:30:08 -0400 Subject: [PATCH] CMake: Added 'DROPOUT_DL_TESTS' Option If not set tests will not be build. --- CMakeLists.txt | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index fbbddda..03d1750 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -11,7 +11,7 @@ find_library(SQLITE3_FOUND sqlite3) find_library(GCRYPT_FOUND gcrypt) IF (SQLITE3_FOUND) message(STATUS "sqlite3 found") - target_link_libraries(dropout-dl curl sqlite3) + target_link_libraries(dropout-dl sqlite3) add_compile_definitions(DROPOUT_DL_SQLITE) ENDIF() IF(GCRYPT_FOUND) @@ -19,7 +19,6 @@ IF(GCRYPT_FOUND) target_link_libraries(dropout-dl gcrypt) add_compile_definitions(DROPOUT_DL_GCRYPT) ENDIF() - -# IF(DROPOUT_BUILD_TESTS) +IF(DROPOUT_DL_TESTS) add_subdirectory(tests) -# ENDIF() +ENDIF()