From c206fd07db07dc6271185dabac822e10d78b4443 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Tue, 2 Oct 2018 00:52:30 +0200 Subject: Add sibs package command Currently in testing phase. Builds a redistributable binary by statically linking libraries (including standard library). --- src/CmakeModule.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/CmakeModule.cpp') 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 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::Err("Project " + config.getPackageName() + " is a cmake project, such projects are currently not supported when building a package"); + Result globalLibDirResult = getHomeDir(); if (!globalLibDirResult) return Result::Err(globalLibDirResult); -- cgit v1.2.3