check for build type instead using a option to enable or disable the debug console
This commit is contained in:
parent
821997889f
commit
7e2ca090b8
@ -2,7 +2,6 @@ cmake_minimum_required(VERSION 3.1)
|
|||||||
|
|
||||||
option(BUILD_TESTS "Build all tests" OFF)
|
option(BUILD_TESTS "Build all tests" OFF)
|
||||||
option(APPVEYOR_BUILD "Build on appveyor" 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)
|
set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake)
|
||||||
|
|
||||||
|
@ -36,7 +36,7 @@ build_script:
|
|||||||
- echo %INSTVERSION%
|
- echo %INSTVERSION%
|
||||||
- echo %DIST%
|
- echo %DIST%
|
||||||
- echo %DATE%
|
- 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
|
- cmake --build build --config Release
|
||||||
|
|
||||||
after_build:
|
after_build:
|
||||||
|
@ -57,7 +57,7 @@ macro(init_os_bundle)
|
|||||||
if (APPLE)
|
if (APPLE)
|
||||||
set(OS_BUNDLE MACOSX_BUNDLE)
|
set(OS_BUNDLE MACOSX_BUNDLE)
|
||||||
elseif (WIN32)
|
elseif (WIN32)
|
||||||
if(NOT WINDOWS_DEBUG)
|
IF(CMAKE_BUILD_TYPE MATCHES RELEASE)
|
||||||
set(OS_BUNDLE WIN32)
|
set(OS_BUNDLE WIN32)
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
Loading…
Reference in New Issue
Block a user