Skip to content

Commit 15557de

Browse files
committed
Added missing find_package()
1 parent 7b2423b commit 15557de

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

libjsonexpr/CMakeLists.txt

+5
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,18 @@ if (NOT JSONEXPR_USE_SYSTEM_JSON)
99
FetchContent_Declare(json
1010
URL https://github.com/nlohmann/json/archive/refs/tags/v3.11.3.zip)
1111
FetchContent_MakeAvailable(json)
12+
else()
13+
find_package(nlohmann_json REQUIRED)
1214
endif()
15+
1316
if (NOT JSONEXPR_USE_STD_EXPECTED AND NOT JSONEXPR_USE_SYSTEM_EXPECTED)
1417
set(EXPECTED_BUILD_TESTS OFF)
1518
set(EXPECTED_BUILD_PACKAGE_DEB OFF)
1619
FetchContent_Declare(expected
1720
URL https://github.com/TartanLlama/expected/archive/refs/tags/v1.1.0.zip)
1821
FetchContent_MakeAvailable(expected)
22+
else()
23+
find_package(tl-expected REQUIRED)
1924
endif()
2025

2126
if (DEFINED BUILD_SHARED_LIBS)

0 commit comments

Comments
 (0)