From 0445e74fa36d1460b0fad442bee3f2bddf6186e2 Mon Sep 17 00:00:00 2001 From: Marcelo Zimbres Date: Mon, 1 Jan 2024 12:35:16 +0100 Subject: [PATCH] Fixes the CMake file. --- example/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/example/CMakeLists.txt b/example/CMakeLists.txt index a727b75b..a400d21b 100644 --- a/example/CMakeLists.txt +++ b/example/CMakeLists.txt @@ -10,8 +10,8 @@ macro(make_example EXAMPLE_NAME STANDARD) if (${STANDARD} STREQUAL "20") target_link_libraries(${EXAMPLE_NAME} PRIVATE examples_main) endif() - if (${STANDARD} STREQUAL "20") - target_link_libraries(${EXAMPLE_NAME} PRIVATE Boost::json) + if (${EXAMPLE_NAME} STREQUAL "cpp20_json") + target_link_libraries(${EXAMPLE_NAME} PRIVATE Boost::json Boost::container_hash) endif() endmacro()