Reputation:
I wish to change a $(something)
variable in VS2010. I cannot for the life of me find where these $(something)
variables are defined.
For the curios it is because I am compiling libpng and need to change $(ZLibSrcDir)
so it points to where my zlib is. I know I could just put it where it expects it, but I would like to know how to change these variables none the less.
Upvotes: 0
Views: 1305
Reputation:
The answer I was looking for was to edit the property sheet. This is the property sheet zlib.props that comes with the latest libpng source. It is in the same folder as the .sln file.
<?xml version="1.0" encoding="utf-8"?>
<!--
* zlib.props - location of zlib source
*
* libpng version 1.5.2 - March 31, 2011
*
* Copyright (c) 1998-2010 Glenn Randers-Pehrson
*
* This code is released under the libpng license.
* For conditions of distribution and use, see the disclaimer
* and license in png.h
* You must edit this file to record the location of the zlib
* source code.
-->
<Project ToolsVersion="4.0"
xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup Label="Globals">
<!-- Place the name of the directory containing the source of zlib used for
debugging in this property.
The directory need only contain the '.c' and '.h' files from the
source.
If you use a relative directory name (as below) then it must be
relative to the project directories; these are one level deepers than
the directories containing this file.
-->
<ZLibSrcDir>..\..\..\..\zlib</ZLibSrcDir>
</PropertyGroup>
</Project>
It is very well commented :)
Upvotes: 4
Reputation: 100238
Create environment variable %ZLibSrcDir%
pointing where you need.
My Computer -> Properties -> Advanced -> Environment Variables
Why not?
Upvotes: 0