editors: scel - do not require emacs when omitting bytecode compilation
Signed-off-by: Tim Blechmann <tim@klingt.org>
This commit is contained in:
parent
dfb69f398b
commit
f5f09b6090
1 changed files with 5 additions and 5 deletions
|
@ -1,8 +1,3 @@
|
|||
find_program(EMACS_EXECUTABLE emacs)
|
||||
if(NOT EMACS_EXECUTABLE)
|
||||
message(SEND_ERROR "Emacs could not be found")
|
||||
endif()
|
||||
|
||||
option(SC_EL_BYTECOMPILE "Build emacs-based IDE." ON)
|
||||
|
||||
file(GLOB scel_sources
|
||||
|
@ -20,6 +15,11 @@ endforeach()
|
|||
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")
|
||||
endif()
|
||||
|
||||
foreach (el ${all_scel_sources})
|
||||
add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/${el}c
|
||||
COMMAND ${EMACS_EXECUTABLE} -batch
|
||||
|
|
Loading…
Reference in a new issue