[cmake-developers] [CMake 0014728]: [CMake/Ninja] add_dependencies() to objlib's user is ignored.

Mantis Bug Tracker mantis at public.kitware.com
Sun Feb 2 23:13:12 EST 2014


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                                    
======================================================================



More information about the cmake-developers mailing list