From 6eadc07fbd405941252cb05e96ceae3cef151dd9 Mon Sep 17 00:00:00 2001 From: Vladislav Nepogodin Date: Sun, 20 Nov 2022 21:06:52 +0400 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=A7=20fix=20compilation?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/CMakeLists.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index c39e2a3..ddab1a3 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -14,7 +14,10 @@ list(APPEND test_SOURCES add_library(test_libreq STATIC ${test_SOURCES}) target_include_directories(test_libreq PRIVATE ${CMAKE_BINARY_DIR}/include ${CMAKE_SOURCE_DIR}/include ${CMAKE_CURRENT_DIR}) -target_link_libraries(test_libreq PRIVATE project_warnings project_options spdlog::spdlog fmt::fmt ftxui::component cpr::cpr range-v3::range-v3 ctre::ctre) +target_link_libraries(test_libreq PRIVATE project_warnings project_options spdlog::spdlog fmt::fmt ftxui::component range-v3::range-v3 ctre::ctre) +if(NOT ENABLE_DEVENV) + target_link_libraries(test_libreq PRIVATE cpr::cpr) +endif() ############################################################################# # one executable for each unit test file