[CMake] ADD_CUSTOM_COMMAND() cannot depend on ADD_CUSTOM_TARGET()

2011-02-14 Thread John McGehee
I have a custom command that depends on a custom target. In the example below, it is as if ADD_CUSTOM_COMMAND(... DEPENDS t ...) has no effect: # CMakeLists.txt: CMAKE_MINIMUM_REQUIRED(VERSION 2.8 FATAL_ERROR) PROJECT(CUSTOMDEPENDS NONE) ADD_CUSTOM_TARGET(t ${CMAKE_COMMAND} -E echo

Re: [CMake] ADD_CUSTOM_COMMAND() cannot depend on ADD_CUSTOM_TARGET()

2011-02-14 Thread Michael Hertling
On 02/15/2011 12:58 AM, John McGehee wrote: I have a custom command that depends on a custom target. In the example below, it is as if ADD_CUSTOM_COMMAND(... DEPENDS t ...) has no effect: # CMakeLists.txt: CMAKE_MINIMUM_REQUIRED(VERSION 2.8 FATAL_ERROR) PROJECT(CUSTOMDEPENDS NONE)