https://github.com/Kitware/CMake
Revision d89e10cd58e5f9e21cbd466e56a1890e2811bee0 authored by Brad King on 14 July 2017, 17:52:53 UTC, committed by Brad King on 14 July 2017, 18:05:22 UTC
The code add_library(A OBJECT a.c) target_sources(A PRIVATE $<TARGET_OBJECTS:A>) used to crash CMake via infinite recursion while evaluating the generator expression. Then the change in commit v3.9.0-rc1~266^2~1 (cmGeneratorTarget: Replace source classifier implementation, 2017-04-07) avoided the infinite recursion because GetKindedSources now creates a map entry and initializes it once. If it is called again on the same target during that initialization, the partially computed results are returned. This is still wrong but does not crash. Detect and diagnose this case instead. Co-Author: Ben Boeckel <ben.boeckel@kitware.com> Fixes: #16578
1 parent 25b72e9
Tip revision: d89e10cd58e5f9e21cbd466e56a1890e2811bee0 authored by Brad King on 14 July 2017, 17:52:53 UTC
Diagnose object library self-reference
Diagnose object library self-reference
Tip revision: d89e10c
cmVS10CudaHostFlagTable.h
static cmVS7FlagTable cmVS10CudaHostFlagTable[] = {
//{"Optimization", "", "<inherit from host>", "InheritFromHost", 0},
{ "Optimization", "Od", "Disabled", "Od", 0 },
{ "Optimization", "O1", "Minimize Size", "O1", 0 },
{ "Optimization", "O2", "Maximize Speed", "O2", 0 },
{ "Optimization", "Ox", "Full Optimization", "O3", 0 },
//{"Runtime", "", "<inherit from host>", "InheritFromHost", 0},
{ "Runtime", "MT", "Multi-Threaded", "MT", 0 },
{ "Runtime", "MTd", "Multi-Threaded Debug", "MTd", 0 },
{ "Runtime", "MD", "Multi-Threaded DLL", "MD", 0 },
{ "Runtime", "MDd", "Multi-threaded Debug DLL", "MDd", 0 },
{ "Runtime", "ML", "Single-Threaded", "ML", 0 },
{ "Runtime", "MLd", "Single-Threaded Debug", "MLd", 0 },
//{"RuntimeChecks", "", "<inherit from host>", "InheritFromHost", 0},
//{"RuntimeChecks", "", "Default", "Default", 0},
{ "RuntimeChecks", "RTCs", "Stack Frames", "RTCs", 0 },
{ "RuntimeChecks", "RTCu", "Uninitialized Variables", "RTCu", 0 },
{ "RuntimeChecks", "RTC1", "Both", "RTC1", 0 },
//{"TypeInfo", "", "<inherit from host>", "InheritFromHost", 0},
{ "TypeInfo", "GR", "Yes", "true", 0 },
{ "TypeInfo", "GR-", "No", "false", 0 },
//{"Warning", "", "<inherit from host>", "InheritFromHost", 0},
{ "Warning", "W0", "Off: Turn Off All Warnings", "W0", 0 },
{ "Warning", "W1", "Level 1", "W1", 0 },
{ "Warning", "W2", "Level 2", "W2", 0 },
{ "Warning", "W3", "Level 3", "W3", 0 },
{ "Warning", "W4", "Level 4", "W4", 0 },
{ "Warning", "Wall", "Enable All Warnings", "Wall", 0 },
{ 0, 0, 0, 0, 0 }
};
Computing file changes ...