get_filename_component — CMake 3.23.0-rc4 Documentation
cmake.org › cmake › helpIf no base directory is provided, the default base directory will be CMAKE_CURRENT_SOURCE_DIR. Paths are returned with forward slashes and have no trailing slashes. If the optional CACHE argument is specified, the result variable is added to the cache. get_filename_component (<var> <FileName> PROGRAM [PROGRAM_ARGS <arg_var>] [CACHE])