[cmake-developers] [CMake 0015755]: add_dependencies() undoes include_directories()
Mantis Bug Tracker
mantis at public.kitware.com
Mon Sep 21 12:27:50 EDT 2015
The following issue has been SUBMITTED.
======================================================================
http://www.cmake.org/Bug/view.php?id=15755
======================================================================
Reported By: Dimitri Merejkowsky
Assigned To:
======================================================================
Project: CMake
Issue ID: 15755
Category: CMake
Reproducibility: always
Severity: major
Priority: normal
Status: new
======================================================================
Date Submitted: 2015-09-21 12:27 EDT
Last Modified: 2015-09-21 12:27 EDT
======================================================================
Summary: add_dependencies() undoes include_directories()
Description:
Calling add_dependencies() between two targets causes some calls to
include_directories() to no longer be taken into account
Steps to Reproduce:
See attached project.
$ mkdir b1
$ cmake ..
$ make
...
[ 25%] Linking C executable eggs
CMakeFiles/eggs.dir/eggs.c.o: In function `main':
eggs.c:(.text+0xa): undefined reference to `spam
$ mkdir b2
$ cmake -DADD_DEPENDENCIES=ON ..
$ make
[ 25%] Building C object spam/CMakeFiles/spam.dir/src/spam.c.o
spam/src/spam.c:1:23: fatal error: spam/spam.h: No such file or directory
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
2015-09-21 12:27 Dimitri MerejkowskyNew Issue
2015-09-21 12:27 Dimitri MerejkowskyFile Added: spam.zip
======================================================================
More information about the cmake-developers
mailing list