Skip to content

Commit 4a10ebd

Browse files
committed
fix: windows winmain build error
1 parent 8a3085a commit 4a10ebd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ endif()
2525
if(WIN32)
2626
# 设置应用程序图标(仅限Windows)
2727
set_property(TARGET nidb PROPERTY WIN32_EXECUTABLE TRUE)
28+
# 设置应用程序为控制台应用程序
29+
set_target_properties(nidb PROPERTIES LINK_FLAGS "/SUBSYSTEM:CONSOLE")
2830
endif()
2931

3032
# 安装规则

0 commit comments

Comments
 (0)