mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-05 13:50:10 -05:00
Merge topic 'vs-rc-defines'
fff34934MSVC: Restore _DEBUG preprocessor definition in RC debug builds79a91538RC: Add missing CMAKE_RC_FLAGS_<CONFIG> entries to cachec77194ecVS: Honor preprocessor definitions in RC flags1449f6f6cmVisualStudio10TargetGenerator: De-duplicate preprocessor defs8a619e8ccmIDEOptions: Add GetDefines method Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !640
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
#include "cmVisualStudioGeneratorOptions.h"
|
||||
|
||||
#include "cmAlgorithms.h"
|
||||
#include "cmLocalVisualStudioGenerator.h"
|
||||
#include "cmOutputConverter.h"
|
||||
#include "cmSystemTools.h"
|
||||
@@ -403,8 +404,10 @@ void cmVisualStudioGeneratorOptions::OutputPreprocessorDefinitions(
|
||||
fout << prefix << tag << "=\"";
|
||||
}
|
||||
const char* sep = "";
|
||||
std::vector<std::string>::const_iterator de =
|
||||
cmRemoveDuplicates(this->Defines);
|
||||
for (std::vector<std::string>::const_iterator di = this->Defines.begin();
|
||||
di != this->Defines.end(); ++di) {
|
||||
di != de; ++di) {
|
||||
// Escape the definition for the compiler.
|
||||
std::string define;
|
||||
if (this->Version < cmGlobalVisualStudioGenerator::VS10) {
|
||||
|
||||
Reference in New Issue
Block a user