[CMake] Adding non-file dependencies to a custom target

Giampiero Salvi giampi at kth.se
Mon Oct 20 08:04:38 EDT 2008


Giampiero Salvi wrote:
> ADD_CUSTOM_TARGET(maintgt ALL
>  DEPENDS ${EXECUTABLE_OUTPUT_PATH}/synface${CMAKE_EXECUTABLE_SUFFIX}

The last line should be:
DEPENDS ${EXECUTABLE_OUTPUT_PATH}/maintgt${CMAKE_EXECUTABLE_SUFFIX}

Giampiero



More information about the CMake mailing list