diff options
author | Brad King <brad.king@kitware.com> | 2009-03-23 18:48:09 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2009-03-23 18:48:09 (GMT) |
commit | 4085454658d9af9c2cfb58b67ff2434692887a30 (patch) | |
tree | d164217623a7d33569a807d9123565262e077f3a /Source/cmLocalVisualStudio6Generator.cxx | |
parent | 10a91d8467d10fcf9cf9eaa2a05e9ea6fcc87614 (diff) | |
download | CMake-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 'Source/cmLocalVisualStudio6Generator.cxx')
-rw-r--r-- | Source/cmLocalVisualStudio6Generator.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/cmLocalVisualStudio6Generator.cxx b/Source/cmLocalVisualStudio6Generator.cxx index 3493719..8ecfa0d 100644 --- a/Source/cmLocalVisualStudio6Generator.cxx +++ b/Source/cmLocalVisualStudio6Generator.cxx @@ -1712,11 +1712,11 @@ cmLocalVisualStudio6Generator } // Now do the VS6-specific check. - if(define.find_first_of("=") != define.npos) + if(define.find_first_of(" ") != define.npos) { cmOStringStream e; - e << "WARNING: The VS6 IDE does not support preprocessor definitions " - << "with values.\n" + e << "WARNING: The VS6 IDE does not support preprocessor definition " + << "values with spaces.\n" << "CMake is dropping a preprocessor definition: " << define << "\n" << "Consider defining the macro in a (configured) header file.\n"; cmSystemTools::Message(e.str().c_str()); |