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