From 6d83d2fe8fe50fbaff752c0aa297490da0215323 Mon Sep 17 00:00:00 2001 From: Corentin Chary <cchary@commonit.com> Date: Mon, 22 Feb 2010 14:17:02 +0100 Subject: [PATCH] pkcs11-daemon: disable win32 console Signed-off-by: Corentin Chary <cchary@commonit.com> --- CMakeLists.txt | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index a645c9b..83c5223 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -11,7 +11,15 @@ set(PKCS11_DAEMON_SRCS egg-buffer.c gck-rpc-daemon-standalone.c gck-rpc-dispatch add_definitions(-Wall) add_library(pkcs11-proxy SHARED ${PKCS11_PROXY_SRCS}) -add_executable (pkcs11-daemon ${PKCS11_DAEMON_SRCS}) + +# Disable console when building Win32 binary in release mode +if (WIN32) + if("${CMAKE_BUILD_TYPE}" MATCHES "^Rel.*") + set(GUI_TYPE WIN32) + endif() +endif() + +add_executable (pkcs11-daemon ${GUI_TYPE} ${PKCS11_DAEMON_SRCS}) set_target_properties(pkcs11-proxy PROPERTIES VERSION 0.1 SOVERSION 0) -- GitLab