diff options
author | Brad King <brad.king@kitware.com> | 2019-09-05 14:31:56 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2019-09-05 14:31:56 (GMT) |
commit | 5acf0de1feb83a8ec5d8f1348091501919b17cad (patch) | |
tree | 0d95a98e98ed5832159b97cbf8bc2fd521d7d3e1 /Source/cmLocalCommonGenerator.cxx | |
parent | 6db8f6a410d99e9a66847530bb520b329d2f1a9e (diff) | |
download | CMake-5acf0de1feb83a8ec5d8f1348091501919b17cad.zip CMake-5acf0de1feb83a8ec5d8f1348091501919b17cad.tar.gz CMake-5acf0de1feb83a8ec5d8f1348091501919b17cad.tar.bz2 |
cmLocalGenerator: Remove AppendFlags 'const char*' overload
Update call sites to ensure the `std::string` argument can be
constructed safely.
Diffstat (limited to 'Source/cmLocalCommonGenerator.cxx')
-rw-r--r-- | Source/cmLocalCommonGenerator.cxx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/Source/cmLocalCommonGenerator.cxx b/Source/cmLocalCommonGenerator.cxx index 7c36bdc..f86955d 100644 --- a/Source/cmLocalCommonGenerator.cxx +++ b/Source/cmLocalCommonGenerator.cxx @@ -35,10 +35,8 @@ std::string cmLocalCommonGenerator::GetTargetFortranFlags( std::string flags; // Enable module output if necessary. - if (const char* modout_flag = - this->Makefile->GetDefinition("CMAKE_Fortran_MODOUT_FLAG")) { - this->AppendFlags(flags, modout_flag); - } + this->AppendFlags( + flags, this->Makefile->GetSafeDefinition("CMAKE_Fortran_MODOUT_FLAG")); // Add a module output directory flag if necessary. std::string mod_dir = |