The following issue has been SUBMITTED. ====================================================================== http://www.cmake.org/Bug/view.php?id=14728 ====================================================================== Reported By: NAKAMURA Takumi Assigned To: ====================================================================== Project: CMake Issue ID: 14728 Category: CMake Reproducibility: always Severity: minor Priority: normal Status: new ====================================================================== Date Submitted: 2014-02-02 23:13 EST Last Modified: 2014-02-02 23:13 EST ====================================================================== Summary: [CMake/Ninja] add_dependencies() to objlib's user is ignored. Description: See the case below. foobar doesn't depend on cmd2 with -GNinja.
It seems works with Unix Makefiles. Steps to Reproduce: cmake_minimum_required(VERSION 2.8) add_custom_target(cmd1 COMMAND echo cmd1) add_custom_target(cmd2 COMMAND echo cmd2) add_library(obj.foobar OBJECT foobar.c) add_executable(foobar $<TARGET_OBJECTS:obj.foobar>) add_dependencies(obj.foobar cmd1) add_dependencies(foobar cmd2) # ignored. ====================================================================== Issue History Date Modified Username Field Change ====================================================================== 2014-02-02 23:13 NAKAMURA TakumiNew Issue ====================================================================== -- 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://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers
