From 8b052110d8802eda3d4d76700bde8ecc80dbf79a Mon Sep 17 00:00:00 2001 From: dec05eba Date: Wed, 3 Jan 2018 21:17:49 +0100 Subject: Add "sibs test" command. Tests are only run when that command is invoked --- src/Conf.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/Conf.cpp') 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; } -- cgit v1.2.3