Skip to content

Commit 903e3c2

Browse files
committed
Set define when building with incompatible licenses.
1 parent f6352ca commit 903e3c2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Project.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,10 @@ const wstring Project::configurationType() const
5252
const wstring Project::defines() const
5353
{
5454
wstring defines=L"_WIN32_WINNT=0x0601";
55+
56+
if (_options.includeIncompatibleLicense)
57+
defines+=L";MAGICK_INCLUDE_INCOMPATIBLE_LICENSE";
58+
5559
if (_options.isStaticBuild || _config.type() == ProjectType::StaticLibrary)
5660
{
5761
defines+=L";_LIB";

0 commit comments

Comments
 (0)