all repos — mgba @ 35716a08956db30db67237d477aa4d50e3c056bb

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

35716a08956db30db67237d477aa4d50e3c056bb

parent

5d8e80e2d7ec13e2d2719557ddeb4506682ba377

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")

@@ -991,7 +993,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}")