Skip to content

Commit 80ef95c

Browse files
committed
Add Windows-specific executable configuration in CMakeLists.txt
1 parent 035aad8 commit 80ef95c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

proxyserver/CMakeLists.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,11 @@ set(SOURCES
2828
${APP_ICON_RESOURCE_WINDOWS}
2929
)
3030

31-
add_executable(${PROJECT_NAME} ${SOURCES} ${RESOURCES})
31+
if(WIN32)
32+
add_executable(${PROJECT_NAME} WIN32 ${SOURCES} ${RESOURCES})
33+
else()
34+
add_executable(${PROJECT_NAME} ${SOURCES} ${RESOURCES})
35+
endif()
3236

3337
target_link_libraries(${PROJECT_NAME} PRIVATE
3438
Qt6::Core

0 commit comments

Comments
 (0)