MantisBT - CMake | ||||||||||
View Issue Details | ||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | |||||
0015052 | CMake | CMake | public | 2014-07-31 13:48 | 2016-06-10 14:31 | |||||
Reporter | Dmitry | |||||||||
Assigned To | Kitware Robot | |||||||||
Priority | normal | Severity | minor | Reproducibility | always | |||||
Status | closed | Resolution | moved | |||||||
Platform | Linux | OS | Ubuntu | OS Version | 14.04 | |||||
Product Version | CMake 2.8.12.2 | |||||||||
Target Version | Fixed in Version | |||||||||
Summary | 0015052: INTERFACE_INCLUDE_DIRECTORIES does not allow non-existent directories, but INCLUDE_DIRECTORIES does | |||||||||
Description | It is a duplicate of http://public.kitware.com/Bug/bug_relationship_graph.php?bug_id=14495 [^] , but I think that Stephen Kelly was not right there. When using add_library(IMPORTED) with INTERFACE_INCLUDE_DIRECTORIES CMake checks existence of the directory in the configuration-time. However, if we declare the same path in INCLUDE_DIRECTORY of the dependent target, everything work fine. This is not consistent. | |||||||||
Steps To Reproduce | 1. Unzip cmake-include-issue.zip 2. Try to build, build will fail 3. Replace "include(inc1.txt)' on line 25 of CMakeLists.txt with "include(inc2.txt)", effectively replacing set_target_properties(sub PROPERTIES INTERFACE_INCLUDE_DIRECTORIES "${source_dir}/include" ) with target_include_directories(main PRIVATE "${source_dir}/include") 4. Now everything works as expected | |||||||||
Additional Information | ||||||||||
Tags | No tags attached. | |||||||||
Relationships |
| |||||||||
Attached Files | cmake-include-issue.zip (2,647) 2014-07-31 13:48 https://public.kitware.com/Bug/file/5208/cmake-include-issue.zip | |||||||||
Issue History | ||||||||||
Date Modified | Username | Field | Change | |||||||
2014-07-31 13:48 | Dmitry | New Issue | ||||||||
2014-07-31 13:48 | Dmitry | File Added: cmake-include-issue.zip | ||||||||
2014-07-31 14:06 | Brad King | Relationship added | related to 0014495 | |||||||
2016-01-31 10:31 | Xavier Décoret | Note Added: 0040384 | ||||||||
2016-01-31 18:46 | Dmitry | Note Added: 0040385 | ||||||||
2016-06-10 14:29 | Kitware Robot | Note Added: 0042598 | ||||||||
2016-06-10 14:29 | Kitware Robot | Status | new => resolved | |||||||
2016-06-10 14:29 | Kitware Robot | Resolution | open => moved | |||||||
2016-06-10 14:29 | Kitware Robot | Assigned To | => Kitware Robot | |||||||
2016-06-10 14:31 | Kitware Robot | Status | resolved => closed |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|