mirror of
https://github.com/BlackMATov/enum.hpp.git
synced 2025-12-15 11:53:50 +07:00
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:
@@ -56,7 +56,7 @@ Also, you can add the root repository directory to your [cmake](https://cmake.or
|
|||||||
|
|
||||||
```cmake
|
```cmake
|
||||||
add_subdirectory(external/enum.hpp)
|
add_subdirectory(external/enum.hpp)
|
||||||
target_link_libraries(your_project_target enum.hpp)
|
target_link_libraries(your_project_target PUBLIC enum.hpp)
|
||||||
```
|
```
|
||||||
|
|
||||||
## Examples
|
## Examples
|
||||||
|
|||||||
Reference in New Issue
Block a user