• Brad King's avatar
    CSharp: Fix regression in VS project type selection for custom target · a56edad6
    Brad King authored
    A target created by `add_custom_target` should always be a `.vcxproj`
    file even if it has `.cs` sources involved in custom commands and such.
    The latter case was broken by refactoring in commit v3.12.0-rc1~160^2~7
    (remove TargetIsCSharpOnly() and use methods from cmGeneratorTarget,
    2018-03-19).  The reason is that the `HasLanguage` method added by
    commit v3.12.0-rc1~239^2~6 (cmGeneratorTarget: add HasLanguage() as
    wrapper for GetLanguages(), 2018-03-19) does not check the target type
    and so is not a suitable check for deciding the project file extension.
    
    The `HasLanguage` method was an attempt at an abstraction that turns
    out not to work very well.  Replace it with a dedicated `IsCSharpOnly`
    method that considers the target type, sources, and non-transitive
    `LINKER_LANGUAGE`.
    
    Fixes: #18515
    a56edad6
Name
Last commit
Last update
..
Android Loading commit data...
AndroidMK Loading commit data...
AndroidTestUtilities Loading commit data...
AutoExportDll Loading commit data...
BuildDepends Loading commit data...
BundleUtilities Loading commit data...
Byproducts Loading commit data...
CMP0004 Loading commit data...
CMP0019 Loading commit data...
CMP0022 Loading commit data...
CMP0026 Loading commit data...
CMP0027 Loading commit data...
CMP0028 Loading commit data...
CMP0037 Loading commit data...
CMP0038 Loading commit data...
CMP0039 Loading commit data...
CMP0040 Loading commit data...
CMP0041 Loading commit data...
CMP0042 Loading commit data...
CMP0043 Loading commit data...
CMP0045 Loading commit data...
CMP0046 Loading commit data...
CMP0049 Loading commit data...
CMP0050 Loading commit data...
CMP0051 Loading commit data...
CMP0053 Loading commit data...
CMP0054 Loading commit data...
CMP0055 Loading commit data...
CMP0057 Loading commit data...
CMP0059 Loading commit data...
CMP0060 Loading commit data...
CMP0064 Loading commit data...
CMP0065 Loading commit data...
CMP0068 Loading commit data...
CMP0069 Loading commit data...
CMP0081 Loading commit data...
CPack Loading commit data...
CPackCommandLine Loading commit data...
CPackConfig Loading commit data...
CPackInstallProperties Loading commit data...
CPackSymlinks Loading commit data...
CSharpCustomCommand Loading commit data...
CSharpReferenceImport Loading commit data...
CTest Loading commit data...
CTestCommandLine Loading commit data...
CTestTimeoutAfterMatch Loading commit data...
CacheNewline Loading commit data...
CheckIPOSupported Loading commit data...
CheckModules Loading commit data...
ClangTidy Loading commit data...
CommandLine Loading commit data...
CommandLineTar Loading commit data...
CompatibleInterface Loading commit data...
CompileDefinitions Loading commit data...
CompileFeatures Loading commit data...
CompilerChange Loading commit data...
CompilerLauncher Loading commit data...
CompilerNotFound Loading commit data...
Configure Loading commit data...
Cppcheck Loading commit data...
Cpplint Loading commit data...
CrosscompilingEmulator Loading commit data...
DisallowedCommands Loading commit data...
ExportWithoutLanguage Loading commit data...
ExternalData Loading commit data...
ExternalProject Loading commit data...
FPHSA Loading commit data...
FeatureSummary Loading commit data...
FetchContent Loading commit data...
File_Generate Loading commit data...
FindBoost Loading commit data...
FindGTK2 Loading commit data...
FindLua Loading commit data...
FindMatlab Loading commit data...
FindOpenGL Loading commit data...
FindPkgConfig Loading commit data...
Framework Loading commit data...
GNUInstallDirs Loading commit data...
GenerateExportHeader Loading commit data...
GeneratorExpression Loading commit data...
GeneratorInstance Loading commit data...
GeneratorPlatform Loading commit data...
GeneratorToolset Loading commit data...
GetPrerequisites Loading commit data...
GoogleTest Loading commit data...
IfacePaths Loading commit data...
IncludeWhatYouUse Loading commit data...
IncompatibleQt Loading commit data...
Languages Loading commit data...
LinkStatic Loading commit data...
LinkWhatYouUse Loading commit data...
Make Loading commit data...
MultiLint Loading commit data...
Ninja Loading commit data...
ObjectLibrary Loading commit data...
ObsoleteQtMacros Loading commit data...
PolicyScope Loading commit data...
PositionIndependentCode Loading commit data...
RuntimePath Loading commit data...
SourceProperties Loading commit data...
Swift Loading commit data...
Syntax Loading commit data...
TargetObjects Loading commit data...
TargetPolicies Loading commit data...
TargetPropertyGeneratorExpressions Loading commit data...
TargetSources Loading commit data...
ToolchainFile Loading commit data...
UseSWIG Loading commit data...
VS10Project Loading commit data...
VSSolution Loading commit data...
VisibilityPreset Loading commit data...
WorkingDirectory Loading commit data...
WriteCompilerDetectionHeader Loading commit data...
XcodeProject Loading commit data...
add_custom_command Loading commit data...
add_custom_target Loading commit data...
add_dependencies Loading commit data...
add_executable Loading commit data...
add_library Loading commit data...
add_link_options Loading commit data...
add_subdirectory Loading commit data...
alias_targets Loading commit data...
build_command Loading commit data...
cmake_minimum_required Loading commit data...
cmake_parse_arguments Loading commit data...
configure_file Loading commit data...
continue Loading commit data...
ctest_build Loading commit data...
ctest_cmake_error Loading commit data...
ctest_configure Loading commit data...
ctest_coverage Loading commit data...
ctest_disabled_test Loading commit data...
ctest_fixtures Loading commit data...
ctest_labels_for_subprojects Loading commit data...
ctest_memcheck Loading commit data...
ctest_skipped_test Loading commit data...
ctest_start Loading commit data...
ctest_submit Loading commit data...
ctest_test Loading commit data...
ctest_upload Loading commit data...
execute_process Loading commit data...
export Loading commit data...
file Loading commit data...
find_dependency Loading commit data...
find_file Loading commit data...
find_library Loading commit data...
find_package Loading commit data...
find_path Loading commit data...
find_program Loading commit data...
foreach Loading commit data...
get_filename_component Loading commit data...
get_property Loading commit data...
if Loading commit data...
include Loading commit data...
include_directories Loading commit data...
include_external_msproject Loading commit data...
include_guard Loading commit data...
install Loading commit data...
interface_library Loading commit data...
list Loading commit data...
math Loading commit data...
message Loading commit data...
no_install_prefix Loading commit data...
option Loading commit data...
project Loading commit data...
project_injected Loading commit data...
return Loading commit data...
separate_arguments Loading commit data...
set Loading commit data...
set_property Loading commit data...
string Loading commit data...
target_compile_features Loading commit data...
target_link_libraries Loading commit data...
target_link_options Loading commit data...
test_include_dirs Loading commit data...
try_compile Loading commit data...
try_run Loading commit data...
variable_watch Loading commit data...
while Loading commit data...
CMakeLists.txt Loading commit data...
README.rst Loading commit data...
RunCMake.cmake Loading commit data...
RunCTest.cmake Loading commit data...
exit_code.c Loading commit data...
pseudo_cppcheck.c Loading commit data...
pseudo_cpplint.c Loading commit data...
pseudo_emulator.c Loading commit data...
pseudo_emulator_custom_command.c Loading commit data...
pseudo_iwyu.c Loading commit data...
pseudo_tidy.c Loading commit data...