Tests: Fix broken dependency in ObjectLibrary test

The add_custom_command DEPENDS option needs a full path.
This commit is contained in:
Brad King 2014-07-02 15:07:04 -04:00
parent 54bf5858cd
commit de4f3e2c82
1 changed files with 1 additions and 1 deletions

View File

@ -6,7 +6,7 @@ add_definitions(-DA_DEF)
add_custom_command(
OUTPUT a1.c
DEPENDS a1.c.in
DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/a1.c.in
COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_SOURCE_DIR}/a1.c.in
${CMAKE_CURRENT_BINARY_DIR}/a1.c
)