diff options
author | dec05eba <dec05eba@protonmail.com> | 2018-10-02 00:52:30 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2020-07-06 07:39:33 +0200 |
commit | c206fd07db07dc6271185dabac822e10d78b4443 (patch) | |
tree | 91d3608a7a5abfb39a1e96a3c8926270c40e759f /src/CmakeModule.cpp | |
parent | 3e401d97546fe407ca72e9766cbdbb9c9212091e (diff) |
Add sibs package command
Currently in testing phase.
Builds a redistributable binary by statically linking libraries
(including standard library).
Diffstat (limited to 'src/CmakeModule.cpp')
-rw-r--r-- | src/CmakeModule.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/CmakeModule.cpp b/src/CmakeModule.cpp index c512f87..1e873cd 100644 --- a/src/CmakeModule.cpp +++ b/src/CmakeModule.cpp @@ -15,6 +15,10 @@ namespace sibs { Result<bool> CmakeModule::compile(const SibsConfig &config, const FileString &buildPath, LinkerFlagCallbackFunc staticLinkerFlagCallbackFunc, LinkerFlagCallbackFunc dynamicLinkerFlagCallbackFunc, GlobalIncludeDirCallbackFunc globalIncludeDirCallback) { + // TODO: Make packaging work with cmake projects + if(config.packaging) + return Result<bool>::Err("Project " + config.getPackageName() + " is a cmake project, such projects are currently not supported when building a package"); + Result<FileString> globalLibDirResult = getHomeDir(); if (!globalLibDirResult) return Result<bool>::Err(globalLibDirResult); |