aboutsummaryrefslogtreecommitdiff
path: root/src/Conf.cpp
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2018-01-03 21:17:49 +0100
committerdec05eba <dec05eba@protonmail.com>2018-01-03 21:42:51 +0100
commit8b052110d8802eda3d4d76700bde8ecc80dbf79a (patch)
tree13d9248067ba61c159e61f6083e090b26916c22f /src/Conf.cpp
parent469a67628f3eb18236ee44e948d1ae0f0e6b1a4a (diff)
Add "sibs test" command. Tests are only run when that command is invoked
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;
}