all repos — mgba @ 25b606c5e6c3b6e919071ffe5aefa9ffa7c3f9a5

mGBA Game Boy Advance Emulator

CMake: Disable 'editline' for Win32 (#1017)

* CMake: Disable 'editline' for Win32

Because editline seems to be unsupported in Win32 GUI applications,
enabling the CLI debugger is only enabled if the target platform
is not Win32.

* CMake: Disable editline status log line for Win32
Lothar Serra Mari lserramari@gmail.com
Sun, 18 Mar 2018 20:22:09 +0100
commit

25b606c5e6c3b6e919071ffe5aefa9ffa7c3f9a5

parent

6a1c7807bb46a58a1bc249239495dede0ddefb30

1 files changed, 6 insertions(+), 2 deletions(-)

jump to
M CMakeLists.txtCMakeLists.txt

@@ -11,7 +11,9 @@ else()

set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -D_CRT_SECURE_NO_WARNINGS /wd4003 /wd4244 /wd4146") endif() set(USE_DEBUGGERS ON CACHE BOOL "Whether or not to enable the debugging infrastructure") -set(USE_EDITLINE ON CACHE BOOL "Whether or not to enable the CLI-mode debugger") +if (NOT WIN32) + set(USE_EDITLINE ON CACHE BOOL "Whether or not to enable the CLI-mode debugger") +endif() set(USE_GDB_STUB ON CACHE BOOL "Whether or not to enable the GDB stub ARM debugger") set(USE_FFMPEG ON CACHE BOOL "Whether or not to enable FFmpeg support") set(USE_ZLIB ON CACHE BOOL "Whether or not to enable zlib support")

@@ -941,7 +943,9 @@ message(STATUS " Game Boy Advance: ${M_CORE_GBA}")

message(STATUS " Game Boy: ${M_CORE_GB}") message(STATUS "Features:") message(STATUS " Debuggers: ${USE_DEBUGGERS}") - message(STATUS " CLI debugger: ${USE_EDITLINE}") + if(NOT WIN32) + message(STATUS " CLI debugger: ${USE_EDITLINE}") + endif() message(STATUS " GDB stub: ${USE_GDB_STUB}") message(STATUS " Video recording: ${USE_FFMPEG}") message(STATUS " GIF recording: ${USE_MAGICK}")