aboutsummaryrefslogtreecommitdiff
path: root/src/Conf.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/Conf.cpp')
-rw-r--r--src/Conf.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Conf.cpp b/src/Conf.cpp
index 1697d9f..0bbbf7b 100644
--- a/src/Conf.cpp
+++ b/src/Conf.cpp
@@ -867,24 +867,24 @@ namespace sibs
if(useCmake)
{
- switch(getPackageType())
+ switch(packageType)
{
case PackageType::EXECUTABLE:
{
- if(!getCmakeDir().empty())
+ if(getCmakeDir().empty())
throw ParserException("Missing required config cmake.dir");
break;
}
case PackageType::STATIC:
{
- if(!getCmakeDirStatic().empty())
+ if(getCmakeDirStatic().empty())
throw ParserException("Missing required config cmake.static");
break;
}
case PackageType::DYNAMIC:
case PackageType::LIBRARY:
{
- if(!getCmakeDirDynamic().empty())
+ if(getCmakeDirDynamic().empty())
throw ParserException("Missing required config cmake.dynamic");
break;
}