Skip to content

Commit

Permalink
Fix CMake generated artifact location
Browse files Browse the repository at this point in the history
  • Loading branch information
saghul committed Nov 10, 2023
1 parent 7b64da2 commit 68f7b1b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ endif()

add_custom_command(
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
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
COMMENT "Compile repl.js to bytecode"
Expand All @@ -94,7 +94,7 @@ endif()
add_executable(qjs_exe
qjs.c
quickjs-libc.c
${CMAKE_BINARY_DIR}/repl.c
${CMAKE_CURRENT_BINARY_DIR}/repl.c
)
set_target_properties(qjs_exe PROPERTIES
OUTPUT_NAME "qjs"
Expand Down

0 comments on commit 68f7b1b

Please sign in to comment.