[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[vidalia-svn] r3825: Add the WIN32 flag to the CMake target for the crash report (vidalia/branches/breakpad/src/crashreporter)
Author: edmanm
Date: 2009-06-08 22:26:33 -0400 (Mon, 08 Jun 2009)
New Revision: 3825
Modified:
vidalia/branches/breakpad/src/crashreporter/CMakeLists.txt
Log:
Add the WIN32 flag to the CMake target for the crash report application
on Windows and link to qtmain. Otherwise, we also get a black command
prompt window when the reporter runs.
Modified: vidalia/branches/breakpad/src/crashreporter/CMakeLists.txt
===================================================================
--- vidalia/branches/breakpad/src/crashreporter/CMakeLists.txt 2009-06-09 00:44:45 UTC (rev 3824)
+++ vidalia/branches/breakpad/src/crashreporter/CMakeLists.txt 2009-06-09 02:26:33 UTC (rev 3825)
@@ -41,7 +41,11 @@
endif(MSVC)
## Create the crashreporter executable
-add_executable(crashreporter ${crashreporter_SRCS})
+if (WIN32)
+ add_executable(crashreporter WIN32 ${crashreporter_SRCS})
+else(WIN32)
+ add_executable(crashreporter ${crashreporter_SRCS})
+endif(WIN32)
## Link the crash reporter application with the Qt and Breakpad libraries
target_link_libraries(crashreporter
@@ -49,4 +53,9 @@
${QT_QTGUI_LIBRARY}
${BREAKPAD_LIBRARIES}
)
+if (WIN32)
+ target_link_libraries(crashreporter
+ ${QT_QTMAIN_LIBRARY}
+ )
+endif(WIN32)