cmake: scel build fix

Signed-off-by: Tim Blechmann <tim@klingt.org>
This commit is contained in:
Tim Blechmann 2010-11-09 12:58:10 +01:00
parent a6eaaa5857
commit 99ff5e5747

View file

@ -24,11 +24,12 @@ add_custom_target(sclang-vars.elc ALL
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/sclang-vars.elc install(FILES ${CMAKE_CURRENT_BINARY_DIR}/sclang-vars.elc
DESTINATION share/emacs/site-lisp) DESTINATION share/emacs/site-lisp)
foreach (el ${scel_sources}) foreach (el ${scel_sources})
configure_file(${el} ${CMAKE_CURRENT_BINARY_DIR}/${el}) configure_file(${el} ${CMAKE_CURRENT_BINARY_DIR}/${el})
add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/${el}c add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/${el}c
COMMAND ${EMACS_EXECUTABLE} -batch -f batch-byte-compile COMMAND ${EMACS_EXECUTABLE} -batch
--eval \"(add-to-list 'load-path (expand-file-name \\\"${CMAKE_CURRENT_SOURCE_DIR}\\\"))\"
-f batch-byte-compile
${CMAKE_CURRENT_BINARY_DIR}/${el} ${CMAKE_CURRENT_BINARY_DIR}/${el}
DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/${el} DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/${el}
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}