summaryrefslogtreecommitdiffstats
path: root/Tests/Preprocess/preprocess.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2009-03-23 18:48:09 (GMT)
committerBrad King <brad.king@kitware.com>2009-03-23 18:48:09 (GMT)
commit4085454658d9af9c2cfb58b67ff2434692887a30 (patch)
treed164217623a7d33569a807d9123565262e077f3a /Tests/Preprocess/preprocess.cxx
parent10a91d8467d10fcf9cf9eaa2a05e9ea6fcc87614 (diff)
downloadCMake-4085454658d9af9c2cfb58b67ff2434692887a30.zip
CMake-4085454658d9af9c2cfb58b67ff2434692887a30.tar.gz
CMake-4085454658d9af9c2cfb58b67ff2434692887a30.tar.bz2
ENH: Support preprocessor def values in VS6
The add_definitions() command and COMPILE_DEFINITIONS dir/tgt/src properties support preprocessor definitions with values. Previously values were not supported in the VS6 generator even though the native tool supports them. It is only values with spaces that VS6 does not support. This enables support and instead complains only for values with spaces. See issue #8779.
Diffstat (limited to 'Tests/Preprocess/preprocess.cxx')
-rw-r--r--Tests/Preprocess/preprocess.cxx2
1 files changed, 0 insertions, 2 deletions
diff --git a/Tests/Preprocess/preprocess.cxx b/Tests/Preprocess/preprocess.cxx
index 628521f..27b6ac8 100644
--- a/Tests/Preprocess/preprocess.cxx
+++ b/Tests/Preprocess/preprocess.cxx
@@ -11,7 +11,6 @@ extern "C" int check_defines_C(void);
int check_defines_CXX()
{
int result = 1;
-#ifndef PREPROCESS_VS6
if(strcmp(FILE_STRING, STRING_VALUE) != 0)
{
fprintf(stderr,
@@ -40,7 +39,6 @@ int check_defines_CXX()
result = 0;
}
}
-#endif
#ifdef NDEBUG
# ifdef FILE_DEF_DEBUG
{