mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-07 06:40:16 -05:00
BUG: Propagate platform settings such as CMAKE_OSX_ARCHITECTURES to the try compile
This commit is contained in:
@@ -204,6 +204,11 @@ int cmTryCompileCommand::CoreTryCompileCode(
|
||||
}
|
||||
fprintf(fout, ")\n");
|
||||
}
|
||||
const char* platformOptions = mf->GetDefinition("CMAKE_TRY_COMPILE_PLATFORM_OPTIONS");
|
||||
if ( platformOptions )
|
||||
{
|
||||
fprintf(fout, "%s\n", platformOptions);
|
||||
}
|
||||
|
||||
fprintf(fout, "ADD_EXECUTABLE(cmTryCompileExec \"%s\")\n",source.c_str());
|
||||
fprintf(fout,
|
||||
|
||||
Reference in New Issue
Block a user