vcpkg/ports/libxlsxwriter/0002-fix-uwp-build.patch
NancyLi1013 b565987e5c [libxlsxwriter] Add new port (#6460)
* [libxlsxwriter] Add new port

* [libxlsxwriter]Re-generate patch file and fix build error in linux.
2019-05-23 21:58:54 -07:00

15 lines
597 B
Diff

diff --git a/CMakeLists.txt b/CMakeLists.txt
index e76ed46..32ffa04 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -211,6 +211,9 @@ target_sources(${PROJECT_NAME}
)
target_link_libraries(${PROJECT_NAME} LINK_PUBLIC ${ZLIB_LIBRARIES} ${MINIZIP_LIBRARIES})
target_compile_definitions(${PROJECT_NAME} PRIVATE ${LXW_PRIVATE_COMPILE_DEFINITIONS})
+if (WINDOWSSTORE)
+ target_compile_definitions(${PROJECT_NAME} PRIVATE -DIOWIN32_USING_WINRT_API)
+endif()
target_include_directories(${PROJECT_NAME}
PRIVATE ${LXW_PRIVATE_INCLUDE_DIRS}
PUBLIC include include/xlsxwriter