summaryrefslogtreecommitdiffstats
path: root/Source/cmLocalVisualStudio7Generator.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2019-10-02 17:48:37 (GMT)
committerBrad King <brad.king@kitware.com>2019-10-17 18:03:54 (GMT)
commitfd2c9fac101ec6d341db5b30e9d1eba64fa23116 (patch)
treeeafb16ef3d68e6dff325a19ff47bf4b41a2deea0 /Source/cmLocalVisualStudio7Generator.cxx
parentf6dac38c1120660c589b218e9d55cef190089dae (diff)
downloadCMake-fd2c9fac101ec6d341db5b30e9d1eba64fa23116.zip
CMake-fd2c9fac101ec6d341db5b30e9d1eba64fa23116.tar.gz
CMake-fd2c9fac101ec6d341db5b30e9d1eba64fa23116.tar.bz2
cmGeneratorTarget: Return non-const sources from GetAllConfigSources
We need a non-const pointer to `cmSourceFile` instances in order to call `GetOrDetermineLanguage` on them.
Diffstat (limited to 'Source/cmLocalVisualStudio7Generator.cxx')
-rw-r--r--Source/cmLocalVisualStudio7Generator.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmLocalVisualStudio7Generator.cxx b/Source/cmLocalVisualStudio7Generator.cxx
index ff1eaec..fd346df 100644
--- a/Source/cmLocalVisualStudio7Generator.cxx
+++ b/Source/cmLocalVisualStudio7Generator.cxx
@@ -1329,7 +1329,7 @@ void cmLocalVisualStudio7Generator::WriteVCProjFile(std::ostream& fout,
// Add CMakeLists.txt file with rule to re-run CMake for user convenience.
if (target->GetType() != cmStateEnums::GLOBAL_TARGET &&
target->GetName() != CMAKE_CHECK_BUILD_SYSTEM_TARGET) {
- if (cmSourceFile const* sf = this->CreateVCProjBuildRule()) {
+ if (cmSourceFile* sf = this->CreateVCProjBuildRule()) {
cmGeneratorTarget::AllConfigSource acs;
acs.Source = sf;
acs.Kind = cmGeneratorTarget::SourceKindCustomCommand;