Permalink
Browse files

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
  • Loading branch information...
lotharsm authored and endrift committed Mar 18, 2018
1 parent 5d8e80e commit 35716a08956db30db67237d477aa4d50e3c056bb
Showing with 6 additions and 2 deletions.
  1. +6 −2 CMakeLists.txt
View
@@ -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}")

0 comments on commit 35716a0

Please sign in to comment.