mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-02 03:39:43 -06:00
In `cmGlobalVisualStudio7Generator::WriteTargetsToSolution`, we skip writing `ZERO_CHECK.proj` to solution file as the check in `cmGlobalVisualStudioGenerator::IsInSolution` returns `false` for `ZERO_CHECK`. However, we write ZERO_CHECK to ProjectDependencies for external projects as there are no checks in `cmGlobalVisualStudio71Generator::WriteExternalProject`. Similar to `cmGlobalVisualStudioGenerator::IsInSolution`, we introduce `IsDepInSolution(const std::string&)` which excludes `ZERO_CHECK.proj` from being added to sln file for the cases where we have `ZERO_CHECK.proj`. Fixes: #23708
24 lines
762 B
CMake
24 lines
762 B
CMake
include(RunCMake)
|
|
include(${CMAKE_CURRENT_LIST_DIR}/check_utils.cmake)
|
|
|
|
run_cmake(CustomGuid)
|
|
run_cmake(CustomTypePlatform)
|
|
run_cmake(CustomGuidTypePlatform)
|
|
run_cmake(CustomConfig)
|
|
|
|
if(RunCMake_GENERATOR MATCHES "Visual Studio ([^9]|9[0-9])")
|
|
run_cmake(SkipGetTargetFrameworkProperties)
|
|
run_cmake(VSCSharpReference)
|
|
endif()
|
|
|
|
if(RunCMake_GENERATOR MATCHES "^Visual Studio (1[6-9]|[2-9][0-9])")
|
|
function(run_VSCSharpOnlyProject)
|
|
set(RunCMake_TEST_BINARY_DIR ${RunCMake_BINARY_DIR}/VSCSharpOnlyProject-build)
|
|
run_cmake(VSCSharpOnlyProject)
|
|
set(RunCMake_TEST_NO_CLEAN 1)
|
|
set(build_flags /restore)
|
|
run_cmake_command(VSCSharpOnlyProject-build ${CMAKE_COMMAND} --build . -- ${build_flags})
|
|
endfunction()
|
|
run_VSCSharpOnlyProject()
|
|
endif()
|