Permalink
Browse files

Improve error messages when cmake can't find optional things

  • Loading branch information...
1 parent 92e7323 commit faf3e50b4b63808ec4c737d546a6d855ac9f2ca1 @danstowell danstowell committed Sep 7, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 editors/scel/el/CMakeLists.txt
  2. +1 −1 lang/CMakeLists.txt
@@ -18,7 +18,7 @@ set(all_scel_sources ${scel_sources} sclang-vars.el)
if (SC_EL_BYTECOMPILE)
find_program(EMACS_EXECUTABLE emacs)
if(NOT EMACS_EXECUTABLE)
- message(SEND_ERROR "Emacs could not be found")
+ message(SEND_ERROR "Emacs could not be found.\n (If emacs interface is not required, then set SC_EL=no)")
endif()
foreach (el ${all_scel_sources})
View
@@ -164,7 +164,7 @@ if (SC_WII OR APPLE)
include_directories(${CWIID_INCLUDE_DIRS} ${BLUETOOTH_INCLUDE_DIRS})
message(STATUS "Compiling with WiiMote support")
else()
- message(SEND_ERROR "Cannot find libcwiid or libbluetooth")
+ message(SEND_ERROR "Cannot find libcwiid or libbluetooth.\n (If Wii support is not required, then set SC_WII=no)")
endif()
elseif(APPLE)
add_definitions(-DHAVE_WII)

0 comments on commit faf3e50

Please sign in to comment.