Quantcast
Channel: Visual C forum
Viewing all articles
Browse latest Browse all 15302

MSBuild and AdditionalIncludeDirectories (/I switch)

$
0
0

Hi,

I added the project Configuration Property: C/C++|General|Additional Include Directories=$(SolutionDir)

On my system this adds:

/I"C:\ASC\Code\CSharp\G3D\"

to the compiler Command Line. This works fine when building from the IDE. If I use MSBuild, the /I switch is overwritten with:

/IC:\ASC\Code\CSharp\G3D\Asc3dScene\

which is the Project directory (i.e. $(ProjectDir)). Is there any way to stop this from happening or any other way to specify Additional Include Directories. MSBuild has properties AdditionalLibPaths and AssemblySearchPaths, neither of these work as Additional Include Directories.

Thanks


Viewing all articles
Browse latest Browse all 15302

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>