diff options
author | Marc Chevrier <marc.chevrier@gmail.com> | 2022-02-10 18:16:18 (GMT) |
---|---|---|
committer | Marc Chevrier <marc.chevrier@gmail.com> | 2022-02-13 14:39:14 (GMT) |
commit | 40178f3c908795a993148553a04be25748942efc (patch) | |
tree | f5fbc0d7f48fb80a450fbf438ef21b8376d69ac3 /Source/cmGlobalGenerator.h | |
parent | 350c1fd60717fc4bd4a1ec32baefc510d8caa6bd (diff) | |
download | CMake-40178f3c908795a993148553a04be25748942efc.zip CMake-40178f3c908795a993148553a04be25748942efc.tar.gz CMake-40178f3c908795a993148553a04be25748942efc.tar.bz2 |
cmGlobalGenerator: Add helper to split framework path
cmComputeLinkInformation and cmGlobalXCodeGenerator now rely on
this method to handle framework paths.
Diffstat (limited to 'Source/cmGlobalGenerator.h')
-rw-r--r-- | Source/cmGlobalGenerator.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/cmGlobalGenerator.h b/Source/cmGlobalGenerator.h index a43d4a6..683968e 100644 --- a/Source/cmGlobalGenerator.h +++ b/Source/cmGlobalGenerator.h @@ -367,6 +367,10 @@ public: /** Determine if a name resolves to a framework on disk or a built target that is a framework. */ bool NameResolvesToFramework(const std::string& libname) const; + /** Split a framework path to the directory and name of the framework + * returns std::nullopt if the path does not match with framework format */ + cm::optional<std::pair<std::string, std::string>> SplitFrameworkPath( + const std::string& path) const; cmMakefile* FindMakefile(const std::string& start_dir) const; cmLocalGenerator* FindLocalGenerator(cmDirectoryId const& id) const; |