You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
Thanks @simon-berger for the NuGet package! In my VS 2022 project the <AdditionalIncludeDirectories> entry in libcpr.props does not seem to work here although everything looks right. The compiler just does not find the folder when I try to #include "cpr/cpr.h"
--> fatal error C1083: Cannot open include file: 'cpr/cpr.h': No such file or directory
(It does work when I add the folder manually to my project's AdditionalIncludeDirectories.)
I thought that it is necessary to add \;%(AdditionalIncludeDirectories) to the line (other projects do that), making it <AdditionalIncludeDirectories>$(MSBuildThisFileDirectory)\$(Platform)\$(Configuration)\include\;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
but that does not seem to solve it here.
When I copy the <ItemDefinitionGroup> / <ClCompile> / <AdditionalIncludeDirectories> nodes from libcpr.props into libcpr.targets, it works fine here. Is that necessary? Apparently in your tests it wasn't.
What do you think?
Thanks!
Sven
The text was updated successfully, but these errors were encountered:
First of all, thank you for your comment and suggestion for improvement and sorry for my late reply, but I am quite busy with other projects at the moment.
Currently I don't have time to test your change and don't know exactly why the error occurs, but if it solves the problem, feel free to create a pull request with your fix.
Hi,
Thanks @simon-berger for the NuGet package! In my VS 2022 project the
<AdditionalIncludeDirectories>
entry in libcpr.props does not seem to work here although everything looks right. The compiler just does not find the folder when I try to#include "cpr/cpr.h"
-->
fatal error C1083: Cannot open include file: 'cpr/cpr.h': No such file or directory
(It does work when I add the folder manually to my project's AdditionalIncludeDirectories.)
I thought that it is necessary to add
\;%(AdditionalIncludeDirectories)
to the line (other projects do that), making it<AdditionalIncludeDirectories>$(MSBuildThisFileDirectory)\$(Platform)\$(Configuration)\include\;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
but that does not seem to solve it here.
When I copy the
<ItemDefinitionGroup> / <ClCompile> / <AdditionalIncludeDirectories>
nodes from libcpr.props into libcpr.targets, it works fine here. Is that necessary? Apparently in your tests it wasn't.What do you think?
Thanks!
Sven
The text was updated successfully, but these errors were encountered: