From c849a30e7e9e2e7608376c9c538e1b45e623c805 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sun, 31 Dec 2017 09:10:27 +0100 Subject: Make platforms in project.conf required --- src/Conf.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') 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) -- cgit v1.2.3