Index: simple/CMakeLists.txt =================================================================== --- simple/CMakeLists.txt (revision 237) +++ simple/CMakeLists.txt (working copy) @@ -30,7 +30,7 @@ DEPENDS ${template_files} ${po_files} ) -add_custom_target(${template} ALL +add_custom_target(template ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/${template} ) Index: preview_1/CMakeLists.txt =================================================================== --- preview_1/CMakeLists.txt (revision 237) +++ preview_1/CMakeLists.txt (working copy) @@ -30,7 +30,7 @@ DEPENDS ${template_files} ${po_files} ) -add_custom_target(${template} ALL +add_custom_target(template ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/${template} ) Index: preview_3/CMakeLists.txt =================================================================== --- preview_3/CMakeLists.txt (revision 237) +++ preview_3/CMakeLists.txt (working copy) @@ -30,7 +30,7 @@ DEPENDS ${template_files} ${po_files} ) -add_custom_target(${template} ALL +add_custom_target(template ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/${template} ) Index: preview_6/CMakeLists.txt =================================================================== --- preview_6/CMakeLists.txt (revision 237) +++ preview_6/CMakeLists.txt (working copy) @@ -30,7 +30,7 @@ DEPENDS ${template_files} ${po_files} ) -add_custom_target(${template} ALL +add_custom_target(template ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/${template} )