Hi,
if I have some path in a std::string inside CMake, what’s the recommended way to get the parent directory of that path ?
Just search for the slashes, or something else ?
Thanks
Alex
Hi,
if I have some path in a std::string inside CMake, what’s the recommended way to get the parent directory of that path ?
Just search for the slashes, or something else ?
Thanks
Alex
You can include ‘cmCMakePath.h’ header which provides cmCMakePath
class.
This class offers the same capabilities as std::filesystem::path.