This website requires JavaScript.
Explore
Help
Sign In
kolan
/
CMake
Watch
1
Star
0
Fork
You've already forked CMake
0
Code
Issues
Pull Requests
Releases
Wiki
Activity
dfec274bdf
CMake
/
Tests
/
RunCMake
/
list
/
CMakeLists.txt
4 lines
101 B
CMake
Raw
Normal View
History
Unescape
Escape
Cygwin: Avoid legacy warnings in RunCMake.* tests Set the minimum required version of CMake high enough to avoid the warning for CMAKE_LEGACY_CYGWIN_WIN32. The warning appears on stderr and breaks the expected output matching.
2013-08-13 17:46:14 +04:00
cmake_minimum_required
(
VERSION
2.8.4
)
list: Handle errors on empty lists more gracefully (#13138) Since commit ed1ea24c (Fix INSERT to allow inserting to empty list, 2006-05-15) the list command allows insertion into an empty list at index 0. Fix rejection of insertion at non-zero (negative) indices to present an error message instead of crashing. While at it, fix the error message of the GET and REMOVE_AT operations when the list is empty to not present a bogus allowed range. Add a "RunCMake.list" test to cover failure cases on empty lists.
2012-04-17 18:32:46 +04:00
project
(
${
RunCMake_TEST
}
NONE
)
include
(
${
RunCMake_TEST
}
.cmake
)