Skip to content

Commit

Permalink
Merge pull request #125 from mrikola/appveyor-hide-console
Browse files Browse the repository at this point in the history
Hide Windows console in distributable packages
  • Loading branch information
Interrupt committed Aug 13, 2018
2 parents ae7f281 + fff7207 commit 82a9e88
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,16 @@ cmake_minimum_required(VERSION 3.1)
# Required for stdbool.h
set(CMAKE_C_STANDARD 99)

set(CMAKE_C_FLAGS -m32)
set(CMAKE_CXX_FLAGS -m32)
# hide Windows console in distributable packages
if(DEFINED ENV{APPVEYOR})
set(CMAKE_C_FLAGS "-m32 -mwindows")
set(CMAKE_CXX_FLAGS "-m32 -mwindows")
endif()

if(NOT DEFINED ENV{APPVEYOR})
set(CMAKE_C_FLAGS -m32)
set(CMAKE_CXX_FLAGS -m32)
endif()

option(ENABLE_EXAMPLES "Enable example applications" OFF)
option(ENABLE_DEBUG_BLIT "Enable debugging blitter" OFF)
Expand Down

0 comments on commit 82a9e88

Please sign in to comment.