aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/Conf.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/Conf.cpp b/src/Conf.cpp
index 7bf5bbc..02e92fe 100644
--- a/src/Conf.cpp
+++ b/src/Conf.cpp
@@ -706,6 +706,9 @@ namespace sibs
if((int)packageType == -1)
throw ParserException("Missing required config package.type. Expected to be one either 'executable', 'static', 'dynamic' or 'library'");
finishedProcessing = true;
+
+ if(platforms.empty())
+ throw ParserException("Missing required config package.platforms. If the package supports all platforms, add:\nplatforms = [\"any\"]\nto project.conf under [package]");
}
void SibsTestConfig::processObject(StringView name)