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.
This commit is contained in:
Xeverous
2022-11-27 05:02:27 +01:00
committed by GitHub
parent deb76ce5a5
commit 54dab10b70

View File

@@ -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