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 /Tests/VSResource/CMakeLists.txt | |
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 'Tests/VSResource/CMakeLists.txt')
-rw-r--r-- | Tests/VSResource/CMakeLists.txt | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Tests/VSResource/CMakeLists.txt b/Tests/VSResource/CMakeLists.txt index 5d7d14e..c5cb336 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") |