[CMake] ADD_DEPENDENCIES() and NonExisitngDependent is NOT an error?
David Cole
david.cole at kitware.com
Thu Jul 26 12:18:38 EDT 2012
On Thu, Jul 26, 2012 at 12:11 PM, Claus Klein <claus.klein at arcormail.de> wrote:
> We use a complex cmake project with a lot of build order dependencies.
> If something is misspelled, I would expect that cmake find this error.
>
>
> Example:
>
> cmake_minimum_required(VERSION 2.8.5)
> project(ftplibcpp CXX)
>
> add_executable(ftpList ftpList.cpp)
> target_link_libraries(ftpList ftpcpp ${LIBS})
>
> ADD_DEPENDENCIES(ftpList ftpcpp;NonExisitngDependent) # this is ok for
> cmake but should be an error?
> ADD_DEPENDENCIES(NonExistingTarget ftpcpp;NonExisitngDependent) # cmake
> ERROR
>
> ---------------------------------
>
> CMake Error at CMakeLists.txt:8 (ADD_DEPENDENCIES):
> add_dependencies Adding dependency to non-existent target:
> NonExistingTarget
>
> ...
>
> IMO this should be too an error if one of the dependency targets does not
> exist at a cmake project.
>
> Can anyone please help?
>
> Thanks in advance
> Best Regards
> Claus
>
> --
>
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the CMake FAQ at:
> http://www.cmake.org/Wiki/CMake_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.cmake.org/mailman/listinfo/cmake
The gory details are here:
http://public.kitware.com/Bug/view.php?id=9188
It's well known, and in the backlog, but nobody is currently actively
working on fixing it to the best of my knowledge.
Sorry,
David
More information about the CMake
mailing list