MantisBT - CMake
View Issue Details
0012303CMakeCMakepublic2011-06-24 12:402016-01-04 11:51
Clinton Stimpson 
Clinton Stimpson 
normalminorhave not tried
closedfixed 
 
CMake 3.3 
0012303: ARGN stripped of empty elements

When creating a function with optional arguments, ARGN is strip of empty arguments.
This means one cannot use ARGN for optional arguments that are ordered.

function(foo arg1 arg2)
  message("ARGV=${ARGV}")
  # should give "arg1;arg2;;arg4"
  message("ARGN=${ARGN}")
  # should give ";arg4" instead of "arg4"
endfunction(foo)

foo("arg1" "arg2" "" "arg4")
No tags attached.
Issue History
2011-06-24 12:40Clinton StimpsonNew Issue
2012-08-11 11:38David ColeStatusnew => backlog
2012-08-11 11:38David ColeNote Added: 0030274
2015-06-12 22:01Clinton StimpsonNote Added: 0038918
2015-06-12 22:01Clinton StimpsonStatusbacklog => resolved
2015-06-12 22:01Clinton StimpsonFixed in Version => CMake 3.3
2015-06-12 22:01Clinton StimpsonResolutionopen => fixed
2015-06-12 22:01Clinton StimpsonAssigned To => Clinton Stimpson
2016-01-04 11:51Robert MaynardNote Added: 0040067
2016-01-04 11:51Robert MaynardStatusresolved => closed

Notes
(0030274)
David Cole   
2012-08-11 11:38   
Sending old, never assigned issues to the backlog.

(The age of the bug, plus the fact that it's never been assigned to anyone means that nobody is actively working on it...)

If an issue you care about is sent to the backlog when you feel it should have been addressed in a different manner, please bring it up on the CMake mailing list for discussion. Sign up for the mailing list here, if you're not already on it: http://www.cmake.org/mailman/listinfo/cmake [^]

It's easy to re-activate a bug here if you can find a CMake developer who has the bandwidth to take it on, and ferry a fix through to our 'next' branch for dashboard testing.
(0038918)
Clinton Stimpson   
2015-06-12 22:01   
Fixed in CMake 3.3 rc2.
(0040067)
Robert Maynard   
2016-01-04 11:51   
Closing resolved issues that have not been updated in more than 4 months.