mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-28 01:49:23 -05:00
Merge topic 'target-COMPILE_OPTIONS'
24466f2Add target_compile_options command.80ca9c4Add COMPILE_OPTIONS target property.7cb2308cmTarget: Rename LinkInterfaceIncludeDirectoriesEntries47f80d9cmTarget: Rename struct to be more re-usable.1319a14Add <LANG>_COMPILER_ID generator expressions.3549676Add cmLocalGenerator::GetCompileOptions.f3ad863VS6: Rename some variables to correspond to config values.
This commit is contained in:
@@ -681,9 +681,11 @@ cmGlobalXCodeGenerator::CreateXCodeSourceFile(cmLocalGenerator* lg,
|
||||
{
|
||||
// Add flags from target and source file properties.
|
||||
std::string flags;
|
||||
if(cmtarget.GetProperty("COMPILE_FLAGS"))
|
||||
std::string targetFlags;
|
||||
lg->GetCompileOptions(targetFlags, &cmtarget, 0); // TODO: Config?
|
||||
if(!targetFlags.empty())
|
||||
{
|
||||
lg->AppendFlags(flags, cmtarget.GetProperty("COMPILE_FLAGS"));
|
||||
lg->AppendFlags(flags, targetFlags.c_str());
|
||||
}
|
||||
const char* srcfmt = sf->GetProperty("Fortran_FORMAT");
|
||||
switch(this->CurrentLocalGenerator->GetFortranFormat(srcfmt))
|
||||
|
||||
Reference in New Issue
Block a user