diff options
author | Taylor Braun-Jones <taylor@braun-jones.org> | 2016-03-21 18:34:34 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2016-03-22 16:41:30 (GMT) |
commit | c05ea48545f04dee8666094b0731366b64dfc9ad (patch) | |
tree | 88c0b7a47d4de7c5ac5ce4262f31ba61e09a9958 /Tests/RunCMake/VSSolution/StartupProject-check.cmake | |
parent | 78ec04613063653008f221eed644f1c2566fd900 (diff) | |
download | CMake-c05ea48545f04dee8666094b0731366b64dfc9ad.zip CMake-c05ea48545f04dee8666094b0731366b64dfc9ad.tar.gz CMake-c05ea48545f04dee8666094b0731366b64dfc9ad.tar.bz2 |
VS: Improve unit test macros
Change `getFirstProject` macro to more flexible version
`getProjectNames`
Diffstat (limited to 'Tests/RunCMake/VSSolution/StartupProject-check.cmake')
-rw-r--r-- | Tests/RunCMake/VSSolution/StartupProject-check.cmake | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Tests/RunCMake/VSSolution/StartupProject-check.cmake b/Tests/RunCMake/VSSolution/StartupProject-check.cmake index 352bbd5..f36aab2 100644 --- a/Tests/RunCMake/VSSolution/StartupProject-check.cmake +++ b/Tests/RunCMake/VSSolution/StartupProject-check.cmake @@ -1,4 +1,5 @@ -getFirstProject(first_project StartupProject) +getProjectNames(projects) +list(GET projects 0 first_project) if(NOT first_project STREQUAL "TestStartup") error("TestStartup is not the startup project") endif() |