From 35716a08956db30db67237d477aa4d50e3c056bb Mon Sep 17 00:00:00 2001 From: Lothar Serra Mari Date: Sun, 18 Mar 2018 20:22:09 +0100 Subject: [PATCH] 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 --- CMakeLists.txt | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 62ea0e10f..3c2abdc07 100644 --- a/CMakeLists.txt +++ b/CMakeLists.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 @@ if(NOT QUIET) 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}")