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()