tfussell / xlnt

:bar_chart: Cross-platform user-friendly xlsx library for C++11+
Other
1.49k stars 418 forks source link

File or directory include referenced by variable XLNT_INCLUDE_DIR does not exist #489

Open johnco3 opened 4 years ago

johnco3 commented 4 years ago

Although this is not strictly a problem with xlnt stand alone, unfortunately it does not play well with vcpkg. I saw a long discussion between the author and Microsoft over in the vcpkg github.

From my limited cmake/vcpkg knowledge, I think the issue stems from expanding the @XLNT_INCLUDE_INSTALL_DIR@ macro from XlntConfig.cmake.in. It looks like some others are experiencing the same issue - [[xlnt] find_package failure [#12107]]((https://github.com/microsoft/vcpkg/issues/12107))

Any ideas? Its the only vcpkg library that is causing me problems. Also in vcpkg - I download and build from the github HEAD via vcpkg install xlnt:x64-windows --head, so I am guessing that any local fixes here should be also resolved in vcpkg.

StefanRommel commented 4 years ago

Can you test https://github.com/tfussell/xlnt/pull/490, it could solve your issue.