cmake: Set include dirs property on exported target
The exported `yaml-cpp` target misses the `INCLUDE_DIRECTORIES` property. This means that even if you use the yaml-cpp target as linked library you still need to add manually the yaml include dirs by using the `YAML_CPP_INCLUDE_DIR` variable. This commit fix the issue but setting properly the `INLCUDE_DIRECTORIES` property on the exported target. Fixes #587 [1] [1]: https://github.com/jbeder/yaml-cpp/issues/587
This commit is contained in:
parent
ab5f9259a4
commit
fad021fa36
@ -269,6 +269,7 @@ set(_INSTALL_DESTINATIONS
|
||||
RUNTIME DESTINATION bin
|
||||
LIBRARY DESTINATION ${LIB_INSTALL_DIR}
|
||||
ARCHIVE DESTINATION ${LIB_INSTALL_DIR}
|
||||
INCLUDES DESTINATION ${INCLUDE_INSTALL_DIR}
|
||||
)
|
||||
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user