diff options
author | Brad King <brad.king@kitware.com> | 2019-10-02 17:48:37 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2019-10-17 18:03:54 (GMT) |
commit | fd2c9fac101ec6d341db5b30e9d1eba64fa23116 (patch) | |
tree | eafb16ef3d68e6dff325a19ff47bf4b41a2deea0 /Source/cmLocalVisualStudio7Generator.cxx | |
parent | f6dac38c1120660c589b218e9d55cef190089dae (diff) | |
download | CMake-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.cxx | 2 |
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; |