Skip to content

Commit c6f1aa5

Browse files
committed
Update MSBuild
1 parent ce5d93b commit c6f1aa5

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

share/install.cmake

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,12 @@ if(MSVC)
7777
to_dos_separator(MSBUILD_QWK_INSTALL_LIBDIR)
7878
to_dos_separator(MSBUILD_QWK_INSTALL_INCDIR)
7979

80+
if(QWINDOWKIT_BUILD_STATIC)
81+
set(MSBUILD_QWK_STATIC_MACRO
82+
"<PreprocessorDefinitions>QWK_CORE_STATIC;QWK_WIDGETS_STATIC;QWK_QUICK_STATIC</PreprocessorDefinitions>"
83+
)
84+
endif()
85+
8086
configure_file(${CMAKE_CURRENT_LIST_DIR}/msbuild/QWindowKit.props.in
8187
${_build_data_dir}/msbuild/QWindowKit.props
8288
@ONLY

share/msbuild/QWindowKit.props.in

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,7 @@
1515
<AdditionalDependencies Condition="'$(Configuration)'=='Release'">@MSBUILD_QWK_LIBRARY_LIST_RELEASE@;%(AdditionalDependencies);</AdditionalDependencies>
1616
</Link>
1717
</ItemDefinitionGroup>
18+
<PropertyGroup>
19+
@MSBUILD_QWK_STATIC_MACRO@
20+
</PropertyGroup>
1821
</Project>

0 commit comments

Comments
 (0)