Skip to content

Commit

Permalink
fix(build): changed library link to public
Browse files Browse the repository at this point in the history
  • Loading branch information
Sinan-Karakaya authored May 10, 2024
1 parent 51c24d3 commit 48d46aa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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()
endif()

0 comments on commit 48d46aa

Please sign in to comment.