From 48d46aaa69da942dc09ab32d2de39529aca8d8e5 Mon Sep 17 00:00:00 2001 From: Sinan Date: Fri, 10 May 2024 17:36:23 +0200 Subject: [PATCH] fix(build): changed library link to public --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 1cc5ac7..67f8cbb 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -17,11 +17,11 @@ include(FetchContent) FetchContent_Declare(json URL https://github.com/nlohmann/json/releases/download/v3.11.3/json.tar.xz) FetchContent_MakeAvailable(json) -target_link_libraries(cpp-i18n PRIVATE nlohmann_json::nlohmann_json) +target_link_libraries(cpp-i18n PUBLIC nlohmann_json::nlohmann_json) # Build tests if (CMAKE_CURRENT_SOURCE_DIR STREQUAL CMAKE_SOURCE_DIR) if (BUILD_TESTING) add_subdirectory(tests) endif() -endif() \ No newline at end of file +endif()