Skip to content

Commit 7893de0

Browse files
committed
Make Ninja happy
Ninja requires that all output files be explicitly listed, and Ninja complained that it didn't know how to build bin/goto-gcc. (BYPRODUCTS is only used by Ninja.)
1 parent d13a776 commit 7893de0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/goto-cc/CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,6 @@ else()
3232
add_custom_command(TARGET goto-cc
3333
POST_BUILD
3434
COMMAND "${CMAKE_COMMAND}" -E create_symlink
35-
goto-cc $<TARGET_FILE_DIR:goto-cc>/goto-gcc)
35+
goto-cc $<TARGET_FILE_DIR:goto-cc>/goto-gcc
36+
BYPRODUCTS ${CMAKE_BINARY_DIR}/bin/goto-gcc)
3637
endif()

0 commit comments

Comments
 (0)