cmake: Set include dirs property on exported target

The exported `yaml-cpp` target misses the `INTERFACE_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 `INTERFACE_INLCUDE_DIRECTORIES`
property on the exported target.

Fixes #587 [1]

[1]: https://github.com/jbeder/yaml-cpp/issues/587
This commit is contained in:
Tommaso Tocci 2018-05-14 16:32:22 +02:00
parent ab5f9259a4
commit 5d76a761f4

View File

@ -269,6 +269,7 @@ set(_INSTALL_DESTINATIONS
RUNTIME DESTINATION bin
LIBRARY DESTINATION ${LIB_INSTALL_DIR}
ARCHIVE DESTINATION ${LIB_INSTALL_DIR}
INCLUDES DESTINATION ${INCLUDE_INSTALL_ROOT_DIR}
)