diff options
author | David Cole <david.cole@kitware.com> | 2011-07-29 14:04:36 (GMT) |
---|---|---|
committer | David Cole <david.cole@kitware.com> | 2011-07-29 14:04:36 (GMT) |
commit | df9577259ca5a30f5c79baee038fe42e25b4a1e5 (patch) | |
tree | e535fcee5353e59e2e1bd57a8bff809ed569dee9 /Source/cmTarget.cxx | |
parent | b6fb213ed1431321fab0705beb3aae82f451dcc8 (diff) | |
download | CMake-df9577259ca5a30f5c79baee038fe42e25b4a1e5.zip CMake-df9577259ca5a30f5c79baee038fe42e25b4a1e5.tar.gz CMake-df9577259ca5a30f5c79baee038fe42e25b4a1e5.tar.bz2 |
Add support for Visual Studio project-specific globals (#8707)
Thanks to Pau Garcia i Quiles for the inspiration for the patch.
I've tweaked it a bit compared to what's in the bug tracker: this
commit does not allow empty global variable names.
I also added usage of the new feature to an existing test. Although
it has no effect on the resulting Visual Studio projects, you can
verify that the VSResource test produces a non-empty globals section
in the generated .vcproj(x) files.
Diffstat (limited to 'Source/cmTarget.cxx')
-rw-r--r-- | Source/cmTarget.cxx | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Source/cmTarget.cxx b/Source/cmTarget.cxx index e10ba4a..17a26cc 100644 --- a/Source/cmTarget.cxx +++ b/Source/cmTarget.cxx @@ -960,6 +960,14 @@ void cmTarget::DefineProperties(cmake *cm) "Visual Studio Source Code Control Project.", "Can be set to change the visual studio source code control " "project name property."); + cm->DefineProperty + ("VS_GLOBAL_<variable>", cmProperty::TARGET, + "Visual Studio project-specific global variable.", + "Tell the Visual Studio generator to set the global variable " + "'<variable>' to a given value in the generated Visual Studio " + "project. Ignored on other generators. Qt integration works " + "better if VS_GLOBAL_QtVersion is set to the version " + "FindQt4.cmake found. For example, \"4.7.3\""); #if 0 cm->DefineProperty |