aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2018-07-30 19:28:02 +0200
committerdec05eba <dec05eba@protonmail.com>2020-07-06 07:39:33 +0200
commit3f252782ad895cc9ec80aad4023c23f8dbf48d00 (patch)
treec0a6ee5b0cb0dfee6891d3ab1e1bfa14f119965e /src
parente45b4f847f3bb5bb083db125a7a5829a42af368f (diff)
Add dependencies dynamic dependencies to root project, to make it possible to use dependencies dependencies from root project
Diffstat (limited to 'src')
-rw-r--r--src/CmakeModule.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/CmakeModule.cpp b/src/CmakeModule.cpp
index cdc03eb..c512f87 100644
--- a/src/CmakeModule.cpp
+++ b/src/CmakeModule.cpp
@@ -56,8 +56,10 @@ namespace sibs
// TODO: If project contains no source files, then we shouldn't override this function... why?
if(!dynamicLinkerFlagCallbackFunc || config.getPackageType() != PackageType::STATIC)
{
- dynamicLinkerFlagCallbackFunc = [&linkerFlags](const string &linkerFlag)
+ dynamicLinkerFlagCallbackFunc = [&linkerFlags, &parentProjDynamicLinkerFlagCallbackFunc](const string &linkerFlag)
{
+ if(parentProjDynamicLinkerFlagCallbackFunc)
+ parentProjDynamicLinkerFlagCallbackFunc(linkerFlag);
linkerFlags.push_back(linkerFlag);
};
}