Browse Source

Tests: Fix broken dependency in ObjectLibrary test

The add_custom_command DEPENDS option needs a full path.
Brad King 11 years ago
parent
commit
de4f3e2c82
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Tests/ObjectLibrary/A/CMakeLists.txt

+ 1 - 1
Tests/ObjectLibrary/A/CMakeLists.txt

@@ -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
   )