diff options
author | Taylor Braun-Jones <taylor@braun-jones.org> | 2016-03-21 20:01:20 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2016-03-23 17:22:15 (GMT) |
commit | f069be054833f465ab469b534fddbc52c5c9913b (patch) | |
tree | cef4fffdbd67374055d67a7ce9c2f918c68f9fec /Tests/RunCMake/VSSolution/RunCMakeTest.cmake | |
parent | c05ea48545f04dee8666094b0731366b64dfc9ad (diff) | |
download | CMake-f069be054833f465ab469b534fddbc52c5c9913b.zip CMake-f069be054833f465ab469b534fddbc52c5c9913b.tar.gz CMake-f069be054833f465ab469b534fddbc52c5c9913b.tar.bz2 |
VS: Fix default target support for targets nested inside a folder
It's not actually the first target in a `.sln` file that is treated as
the default startup project, but rather the first fully defined target.
Diffstat (limited to 'Tests/RunCMake/VSSolution/RunCMakeTest.cmake')
-rw-r--r-- | Tests/RunCMake/VSSolution/RunCMakeTest.cmake | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Tests/RunCMake/VSSolution/RunCMakeTest.cmake b/Tests/RunCMake/VSSolution/RunCMakeTest.cmake index 8ae9598..afd74a1 100644 --- a/Tests/RunCMake/VSSolution/RunCMakeTest.cmake +++ b/Tests/RunCMake/VSSolution/RunCMakeTest.cmake @@ -10,3 +10,7 @@ run_cmake(Override1) run_cmake(Override2) run_cmake(StartupProject) run_cmake(StartupProjectMissing) + +if(RunCMake_GENERATOR MATCHES "Visual Studio ([^7]|[7][0-9])" AND NOT NO_USE_FOLDERS) + run_cmake(StartupProjectUseFolders) +endif() |