summaryrefslogtreecommitdiff
path: root/Tests/VSResource/CMakeLists.txt
diff options
context:
space:
mode:
authorDavid Cole <david.cole@kitware.com>2011-07-29 10:04:36 -0400
committerDavid Cole <david.cole@kitware.com>2011-07-29 10:04:36 -0400
commitdf9577259ca5a30f5c79baee038fe42e25b4a1e5 (patch)
treee535fcee5353e59e2e1bd57a8bff809ed569dee9 /Tests/VSResource/CMakeLists.txt
parentb6fb213ed1431321fab0705beb3aae82f451dcc8 (diff)
downloadcmake-df9577259ca5a30f5c79baee038fe42e25b4a1e5.tar.gz
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 'Tests/VSResource/CMakeLists.txt')
-rw-r--r--Tests/VSResource/CMakeLists.txt5
1 files changed, 4 insertions, 1 deletions
diff --git a/Tests/VSResource/CMakeLists.txt b/Tests/VSResource/CMakeLists.txt
index 5d7d14e5eb..c5cb336ae3 100644
--- a/Tests/VSResource/CMakeLists.txt
+++ b/Tests/VSResource/CMakeLists.txt
@@ -1,4 +1,4 @@
-cmake_minimum_required(VERSION 2.8.3.20110118)
+cmake_minimum_required(VERSION 2.8.4)
project(VSResource)
string(REPLACE "/INCREMENTAL:YES" ""
@@ -35,3 +35,6 @@ else()
endif()
add_executable(VSResource main.cpp test.rc)
+
+set_property(TARGET VSResource
+ PROPERTY VS_GLOBAL_CMakeTestVsGlobalVariable "test val")