View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0010967CMakeCMakepublic2010-07-08 18:022016-06-10 14:31
ReporterMarcus D. Hanwell 
Assigned ToKitware Robot 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionmoved 
PlatformOSOS Version
Product VersionCMake-2-8 
Target VersionFixed in Version 
Summary0010967: mark_as_advanced with find_program overwrites local variables on first CMake run
DescriptionThe mark_as_advanced function overwrites local variables on the first CMake invocation when find_program and mark_as_advanced are called multiple times. We observed this in the Titan project where MPIEXEC was set as a local variable, find_program didn't make a cache entry as MPIEXEC was defined, but mark_as_advanced did. The subsequent run of find_program then defined a type and overwrote the local variable (leaving an empty string).

I have attached two files, placed in the same directory you should be able to reproduce this error. I observed it on Windows with CMake 2.8.1 and on Linux with a fresh build of CMake master from today.
Additional InformationFirst CMake run,

MPIEXEC 1: No changing me!,
MPIEXEC 2: No changing me!, UNINITIALIZED
MPIEXEC 3: , FILEPATH

Second CMake run,

MPIEXEC 1: No changing me!, FILEPATH
MPIEXEC 2: No changing me!, FILEPATH
MPIEXEC 3: No changing me!, FILEPATH
TagsNo tags attached.
Attached Filestgz file icon mark_as_advanced.tgz [^] (473 bytes) 2010-07-08 18:02

 Relationships

  Notes
(0027965)
David Cole (manager)
2011-12-13 19:20

Unset target version field; too late for a fix to go into 2.8.7; deferred until a future version.
(0030599)
David Cole (manager)
2012-08-13 15:12

Sending old, not-recently-updated issues to the backlog.

(The age of the bug alone 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.
(0041726)
Kitware Robot (administrator)
2016-06-10 14:28

Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current CMake Issues page linked in the banner at the top of this page.

 Issue History
Date Modified Username Field Change
2010-07-08 18:02 Marcus D. Hanwell New Issue
2010-07-08 18:02 Marcus D. Hanwell File Added: mark_as_advanced.tgz
2010-07-08 18:02 Marcus D. Hanwell Status new => assigned
2010-07-08 18:02 Marcus D. Hanwell Assigned To => David Cole
2011-10-25 22:36 David Cole Target Version => CMake 2.8.7
2011-12-13 19:20 David Cole Note Added: 0027965
2011-12-13 19:20 David Cole Target Version CMake 2.8.7 =>
2012-08-13 15:12 David Cole Status assigned => backlog
2012-08-13 15:12 David Cole Note Added: 0030599
2012-08-13 15:21 David Cole Assigned To David Cole =>
2016-06-10 14:28 Kitware Robot Note Added: 0041726
2016-06-10 14:28 Kitware Robot Status backlog => resolved
2016-06-10 14:28 Kitware Robot Resolution open => moved
2016-06-10 14:28 Kitware Robot Assigned To => Kitware Robot
2016-06-10 14:31 Kitware Robot Status resolved => closed


Copyright © 2000 - 2018 MantisBT Team