Skip to content

Commit

Permalink
fix: disable XLS export in Qt6
Browse files Browse the repository at this point in the history
because it has been removed from Qt6
  • Loading branch information
CoelacanthusHex committed Dec 13, 2020
1 parent 27b1b33 commit 48373fb
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion BUILD.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ scoop install peach/lemon

当然如果你装有 Qt 5/6,也可以下载源码编译。

NOTE: XLS 导出是默认关闭的,如需使用,请编译时附加 `-DENABLE_XLS_EXPORT` 启用。
NOTE: XLS 导出是默认关闭的,如需使用,请编译时附加 `-DENABLE_XLS_EXPORT` 启用(Qt6 不可用)

### 非常重要的提示

Expand Down
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ endif()

target_include_directories(lemon PUBLIC ${CMAKE_SOURCE_DIR}/src)

if(WIN32 AND ENABLE_XLS_EXPORT)
if(WIN32 AND ENABLE_XLS_EXPORT NOT LEMON_QT6)
find_package(${LEMON_QT_LIBNAME} COMPONENTS AxContainer REQUIRED)
list(APPEND LEMON_QT_LIBS ${LEMON_QT_LIBNAME}::AxContainer)
add_definitions(-DENABLE_XLS_EXPORT)
Expand Down
2 changes: 1 addition & 1 deletion makespec/BUILDVERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
109
110

0 comments on commit 48373fb

Please sign in to comment.