From: Uwe Hermann Date: Tue, 23 Apr 2013 19:20:31 +0000 (+0200) Subject: win32: Use -mwindows to avoid opening a "DOS box". X-Git-Tag: pulseview-0.1.0~23 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=b0d8c0dca6f8976dd6545023d3b6079e605e0acf;p=pulseview.git win32: Use -mwindows to avoid opening a "DOS box". --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 7bc13e05..d673cf81 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -225,6 +225,11 @@ add_executable(${PROJECT_NAME} target_link_libraries(${PROJECT_NAME} ${PULSEVIEW_LINK_LIBS}) +if(WIN32) +# Pass -mwindows so that no "DOS box" will open when PulseView is started. +set_target_properties(${PROJECT_NAME} PROPERTIES LINK_FLAGS "-mwindows") +endif() + #=============================================================================== #= Installation #-------------------------------------------------------------------------------