Fix CMake generated artifact location

This commit is contained in:
Saúl Ibarra Corretgé 2023-11-10 21:42:40 +01:00
parent 7b64da2325
commit 68f7b1be3c

View file

@ -70,7 +70,7 @@ endif()
add_custom_command( add_custom_command(
OUTPUT repl.c OUTPUT repl.c
COMMAND "${CMAKE_BINARY_DIR}/qjsc" -c -o ./repl.c -m ${CMAKE_CURRENT_SOURCE_DIR}/repl.js COMMAND "${CMAKE_CURRENT_BINARY_DIR}/qjsc" -c -o ./repl.c -m ${CMAKE_CURRENT_SOURCE_DIR}/repl.js
DEPENDS qjsc DEPENDS qjsc
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
COMMENT "Compile repl.js to bytecode" COMMENT "Compile repl.js to bytecode"
@ -94,7 +94,7 @@ endif()
add_executable(qjs_exe add_executable(qjs_exe
qjs.c qjs.c
quickjs-libc.c quickjs-libc.c
${CMAKE_BINARY_DIR}/repl.c ${CMAKE_CURRENT_BINARY_DIR}/repl.c
) )
set_target_properties(qjs_exe PROPERTIES set_target_properties(qjs_exe PROPERTIES
OUTPUT_NAME "qjs" OUTPUT_NAME "qjs"