View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0012303CMakeCMakepublic2011-06-24 12:402016-01-04 11:51
ReporterClinton Stimpson 
Assigned ToClinton Stimpson 
PrioritynormalSeverityminorReproducibilityhave not tried
StatusclosedResolutionfixed 
PlatformOSOS Version
Product Version 
Target VersionFixed in VersionCMake 3.3 
Summary0012303: ARGN stripped of empty elements
Description
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")
TagsNo tags attached.
Attached Files

 Relationships

  Notes
(0030274)
David Cole (manager)
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 (developer)
2015-06-12 22:01

Fixed in CMake 3.3 rc2.
(0040067)
Robert Maynard (manager)
2016-01-04 11:51

Closing resolved issues that have not been updated in more than 4 months.

 Issue History
Date Modified Username Field Change
2011-06-24 12:40 Clinton Stimpson New Issue
2012-08-11 11:38 David Cole Status new => backlog
2012-08-11 11:38 David Cole Note Added: 0030274
2015-06-12 22:01 Clinton Stimpson Note Added: 0038918
2015-06-12 22:01 Clinton Stimpson Status backlog => resolved
2015-06-12 22:01 Clinton Stimpson Fixed in Version => CMake 3.3
2015-06-12 22:01 Clinton Stimpson Resolution open => fixed
2015-06-12 22:01 Clinton Stimpson Assigned To => Clinton Stimpson
2016-01-04 11:51 Robert Maynard Note Added: 0040067
2016-01-04 11:51 Robert Maynard Status resolved => closed


Copyright © 2000 - 2018 MantisBT Team