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
This commit is contained in:
Lothar Serra Mari 2018-03-18 20:22:09 +01:00 committed by endrift
parent 5d8e80e2d7
commit 35716a0895
1 changed files with 6 additions and 2 deletions

View File

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