yaml / libyaml

Canonical source repository for LibYAML
http://pyyaml.org/wiki/LibYAML
MIT License
921 stars 312 forks source link

Bug fix: Install yaml.h to INSTALL_INCLUDE_DIR #244

Open sloretz opened 2 years ago

sloretz commented 2 years ago

The CMake build has a variable INSTALL_INCLUDE_DIR that controls the folder headers get installed to. It appears the intent is to allow installing the header to a different folder using cmake -DINSTALL_INCLUDE_DIR=... , and the include directory on the exported yaml target reflects that.

Unfortunately, the actual install() command ignores it and hard codes include. This PR fixes that bug.