From a9bfea5e6b844f7129a5510176e85b274ccab795 Mon Sep 17 00:00:00 2001 From: Glenn Smith Date: Tue, 17 Aug 2021 16:47:36 -0400 Subject: CMake option to set license for generator --- python/generator.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'python/generator.cpp') diff --git a/python/generator.cpp b/python/generator.cpp index 4901b07a..ed28e6f3 100644 --- a/python/generator.cpp +++ b/python/generator.cpp @@ -160,6 +160,11 @@ int main(int argc, char* argv[]) return 1; } + if (getenv("BN_LICENSE")) + { + BNSetLicense(getenv("BN_LICENSE")); + } + Architecture::Register(new GeneratorArchitecture()); // Parse API header to get type and function information -- cgit v1.3.1