-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsbcl.cmake.in
22 lines (21 loc) · 1.12 KB
/
sbcl.cmake.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
set(ENV{CC} "@CMAKE_C_COMPILER@")
set(ENV{SBCL_HOME} "@SBCL_HOME@")
set(ENV{CL_SOURCE_REGISTRY} "@CL_SOURCE_REGISTRY@")
set(ENV{ASDF_OUTPUT_TRANSLATIONS} "@ASDF_OUTPUT_TRANSLATIONS@")
execute_process(COMMAND "@SBCL_EXECUTABLE@"
--noinform
@LISP_RUNTIME_OPTIONS@
--disable-debugger
--no-sysinit --no-userinit
@LISP_INIT@
--eval "(setf *terminal-io*
(make-two-way-stream
(make-synonym-stream (quote *standard-input*))
(make-synonym-stream (quote *standard-output*))))"
@DO@
WORKING_DIRECTORY "@CMAKE_CURRENT_BINARY_DIR@"
@REDIRECTIONS@
RESULT_VARIABLE RESULT)
if(NOT ${RESULT} EQUAL 0)
message(FATAL_ERROR "Failed to execute Lisp process @NAME@")
endif()