MantisBT - CMake
View Issue Details
0016087CMakeCMakepublic2016-05-01 12:362016-06-10 14:21
regnirpsj 
 
normalminoralways
closedfixed 
CMake 3.3.2 
CMake 3.4CMake 3.4 
0016087: get_filename_component has incomplete documentation
documentation for 'get_filename_component' does not mention that absolute paths are build with respect to 'CMAKE_SOURCE_DIR'. that is rather inconvenient when trying to create an absolute path with respect to, say, 'CMAKE_BINARY_DIR' in an out-of-tree build.
the dependency of 'get_filename_component' to 'CMAKE_SOURCE_DIR' was mentioned in issue 0002797.
No tags attached.
Issue History
2016-05-01 12:36regnirpsjNew Issue
2016-05-02 09:15Brad KingNote Added: 0041003
2016-05-02 09:15Brad KingStatusnew => resolved
2016-05-02 09:15Brad KingResolutionopen => fixed
2016-05-02 09:15Brad KingFixed in Version => CMake 3.4
2016-05-02 09:15Brad KingTarget Version => CMake 3.4
2016-06-10 14:21Kitware RobotNote Added: 0041180
2016-06-10 14:21Kitware RobotStatusresolved => closed

Notes
(0041003)
Brad King   
2016-05-02 09:15   
The CMake 3.4 and above documentation provide this information:

  https://cmake.org/cmake/help/v3.4/command/get_filename_component.html [^]

It was added here:

 get_filename_component: Teach new BASE_DIR parameter.
 https://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=e89ea3d1 [^]

along with a feature to help with your use case.
(0041180)
Kitware Robot   
2016-06-10 14:21   
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.