View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0014417CMakeCMakepublic2013-09-16 14:392016-06-10 14:31
ReporterSteven R Thompson 
Assigned ToKitware Robot 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionmoved 
PlatformRed HatOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0014417: "cmake --system-information sfile .." removes "x" perm from ../ and fails
Descriptionfrom my build subdir, I executed "cmake --system-information sinfo .." and it generated lots of error messages like this:
CMake Error st CMakeLists.txt:76 (FILE):
   file Internal CMake error when trying to open file:
   /usr/people/thompson/Xdfm2/build/.. for writing
Call Stck (most recent call first):
   CMakeLists.txt(83) (DUMP_FILE)

the final error message is:
CMake Warning (dev) in CMakeLists.txt:
   No cmake_minimum_required command is present. A line of code such as

    cmake_minimum_required(VERSION 2.6)

should be added to the top of the file.

After running this, I was not able to execute "ls ..", due to the fact that x-permission had been removed from the parent directory. I was able to reproduce this several times, after manually restoring x-permission each time. Apparently it removes x-permission early and then cannot access the files in the parent directory, which results in all the error messages.
Steps To Reproducecmake --system-information sinfo ..
Additional InformationAlso, despite the error about there being no cmake_minimum_required line, it is in the file ../CMakeLists.txt.

I ran the command with ".." as the final argument since the man page for cmake indicates to me that it is required (and other cmake commands require a directory as an arg). Since the x-permission as removed from .., I tried running cmake without .. as an arg, and got different results. The x-permission was not removed, but I still got the warning message about cmake_minimum_required. I did get an sinfo file, so the command worked better without .. as an arg. So at this point I would say that it gives an erroneous warning, that the man page is misleading if a subdirectory is given, and that if a subdirectory is given, it should not remove x-permission.
TagsNo tags attached.
Attached Files

 Relationships

  Notes
(0042366)
Kitware Robot (administrator)
2016-06-10 14:29

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
2013-09-16 14:39 Steven R Thompson New Issue
2016-06-10 14:29 Kitware Robot Note Added: 0042366
2016-06-10 14:29 Kitware Robot Status new => resolved
2016-06-10 14:29 Kitware Robot Resolution open => moved
2016-06-10 14:29 Kitware Robot Assigned To => Kitware Robot
2016-06-10 14:31 Kitware Robot Status resolved => closed


Copyright © 2000 - 2018 MantisBT Team