From 54dab10b701700b2cdcd97e8c49fe87729b049ef Mon Sep 17 00:00:00 2001 From: Xeverous <20820409+Xeverous@users.noreply.github.com> Date: Sun, 27 Nov 2022 05:02:27 +0100 Subject: [PATCH] correct cmake usage example in README.md Modern CMake requires one of PRIVATE, PUBLIC, INTERFACE keywords. Otherwise the target_link_libraries degrades its behavior to old CMake and applies only linker flags instead of transitively forwarding all target requirements. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 4f1792d..98241ba 100644 --- a/README.md +++ b/README.md @@ -56,7 +56,7 @@ Also, you can add the root repository directory to your [cmake](https://cmake.or ```cmake add_subdirectory(external/enum.hpp) -target_link_libraries(your_project_target enum.hpp) +target_link_libraries(your_project_target PUBLIC enum.hpp) ``` ## Examples