scel: cmake, simplify and fix for windows

This commit is contained in:
Jakob Leben 2011-03-18 04:10:27 +01:00
parent 0985d6a202
commit 3403008185

View file

@ -20,7 +20,7 @@ set(all_scel_sources ${scel_sources} sclang-vars.el)
foreach (el ${all_scel_sources}) foreach (el ${all_scel_sources})
add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/${el}c add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/${el}c
COMMAND ${EMACS_EXECUTABLE} -batch COMMAND ${EMACS_EXECUTABLE} -batch
--eval \"(add-to-list 'load-path (expand-file-name \\\"${CMAKE_CURRENT_BINARY_DIR}\\\")) \" -L ${CMAKE_CURRENT_BINARY_DIR}
-f batch-byte-compile -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}