[cmake-developers] [CMake 0015366]: set_source_files_properties OBJECT_DEPENDS broken after normalization
Mantis Bug Tracker
mantis at public.kitware.com
Thu Jan 22 19:09:11 EST 2015
The following issue has been SUBMITTED.
======================================================================
http://public.kitware.com/Bug/view.php?id=15366
======================================================================
Reported By: Daniel v. Gerpen
Assigned To:
======================================================================
Project: CMake
Issue ID: 15366
Category: CMake
Reproducibility: always
Severity: minor
Priority: normal
Status: new
======================================================================
Date Submitted: 2015-01-22 19:09 EST
Last Modified: 2015-01-22 19:09 EST
======================================================================
Summary: set_source_files_properties OBJECT_DEPENDS broken
after normalization
Description:
With cmake 2.8.9 (ubuntu repos) and cmake 3.0.2 (build locally)
the attached project can be build.
[ 50%] Generating ../bla/stuff.h
Scanning dependencies of target app
[100%] Building CXX object blubb/CMakeFiles/app.dir/__/bla/a.cpp.o
Linking CXX executable app
[100%] Built target app
With 3.1 and 3.1.1 it fails because a custom command is not run:
Scanning dependencies of target app
make[2]: *** No rule to make target `blubb/../bla/stuff.h', needed by
`blubb/CMakeFiles/app.dir/__/bla/a.cpp.o'. Stop.
make[1]: *** [blubb/CMakeFiles/app.dir/all] Error 2
make: *** [all] Error 2
Steps to Reproduce:
tar zxf object_depends.tar.gz
cd object_depends
cmake .
make
Additional Information:
https://github.com/Kitware/CMake/commit/c4af46 is the first commit
with this behavior, it introduced normalization of OUTPUT and
DEPENDS in add_custom_command.
>From what I can see OBJECT_DEPENDS in set_source_file_properties
is not normalized.
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
2015-01-22 19:09 Daniel v. GerpenNew Issue
2015-01-22 19:09 Daniel v. GerpenFile Added: object_depends.tar.gz
======================================================================
More information about the cmake-developers
mailing list