check for build type instead using a option to enable or disable the debug console

This commit is contained in:
MTRNord 2017-10-02 14:48:02 +02:00
parent 821997889f
commit 7e2ca090b8
No known key found for this signature in database
GPG Key ID: E5B89311FAB91B9F
3 changed files with 2 additions and 3 deletions

View File

@ -2,7 +2,6 @@ cmake_minimum_required(VERSION 3.1)
option(BUILD_TESTS "Build all tests" OFF)
option(APPVEYOR_BUILD "Build on appveyor" OFF)
option(WINDOWS_DEBUG "Build with debug window" OFF)
set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake)

View File

@ -36,7 +36,7 @@ build_script:
- echo %INSTVERSION%
- echo %DIST%
- echo %DATE%
- cmake -G "Visual Studio 14 2015 Win64" -H. -Bbuild -DAPPVEYOR_BUILD=ON -DWINDOWS_DEBUG=OFF
- cmake -G "Visual Studio 14 2015 Win64" -H. -Bbuild -DAPPVEYOR_BUILD=ON
- cmake --build build --config Release
after_build:

View File

@ -57,7 +57,7 @@ macro(init_os_bundle)
if (APPLE)
set(OS_BUNDLE MACOSX_BUNDLE)
elseif (WIN32)
if(NOT WINDOWS_DEBUG)
IF(CMAKE_BUILD_TYPE MATCHES RELEASE)
set(OS_BUNDLE WIN32)
endif()
endif()