View Issue Details [ Jump to Notes ] | [ Print ] | ||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||
0014946 | CMake | CMake | public | 2014-05-30 02:03 | 2015-01-05 08:38 | ||||
Reporter | Micha Renner | ||||||||
Assigned To | Brad King | ||||||||
Priority | normal | Severity | minor | Reproducibility | always | ||||
Status | closed | Resolution | fixed | ||||||
Platform | Linux | OS | Ubuntu | OS Version | |||||
Product Version | |||||||||
Target Version | CMake 3.0 | Fixed in Version | CMake 3.0 | ||||||
Summary | 0014946: Document build v. install values for INTERFACE_INCLUDE_DIRECTORIES | ||||||||
Description | SET_TARGET_PROPERTIES(${TargetName} PROPERTIES INTERFACE_INCLUDE_DIRECTORIES "${CMAKE_SOURCE_DIR}/rot") produces the following error message gildemeister@iX4:~/work-c/ArchiveCMake/Beispiele/DLL/BuildDLL-40/TLib1/CMake$ make -- CMake's build type is: Debug -- Configuring done CMake Error in CMakeLists.txt: Target "TLib1" INTERFACE_INCLUDE_DIRECTORIES property contains path: "/home/gildemeister/work-c/ArchiveCMake/Beispiele/DLL/BuildDLL-40/TLib1/src/rot" which is prefixed in the source directory. -- Generating done the generated make file works perfect. | ||||||||
Tags | No tags attached. | ||||||||
Attached Files | |||||||||
Relationships | |
Relationships |
Notes | |
(0035969) Micha Renner (reporter) 2014-05-30 02:06 |
CMake Version 3.0rc2 |
(0035970) Brad King (manager) 2014-05-30 08:34 |
See documentation here: http://www.cmake.org/cmake/help/v3.0/manual/cmake-buildsystem.7.html#include-directories-and-usage-requirements [^] "Include directories usage requirements commonly differ between the build-tree and the install-tree. The BUILD_INTERFACE and INSTALL_INTERFACE generator expressions can be used to describe separate usage requirements based on the usage location." |
(0035971) Micha Renner (reporter) 2014-06-02 08:08 |
Reading this "set_property(TARGET tgt APPEND PROPERTY $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR};${CMAKE_CURRENT_BINARY_DIR}>" I understood. One can influence INTERFACE_INCLUDE_DIRECTORIES indirect only. So this is the reason why the I_I_D property can not be set to read-only. I guess, I am not the last one who runs in this pitfall. Thanks for help. This topic is resolved. |
(0036098) Brad King (manager) 2014-06-02 10:46 |
It looks like there was an update to the cmake-buildsystem manual to explain this case in more detail. I've backported it for 3.0: Help: Add code example for INSTALL_INTERFACE to cmake-buildsystem. http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=6fbd9a8f [^] |
(0036104) Brad King (manager) 2014-06-03 09:05 |
I also extended the documentation in the target_include_directories command and the INTERFACE_INCLUDE_DIRECTORIES property to explain how to use $<BUILD_INTERFACE> and $<INSTALL_INTERFACE>: Help: Explain build/install-tree include dirs in more places http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=907e422b [^] |
(0037557) Robert Maynard (manager) 2015-01-05 08:38 |
Closing resolved issues that have not been updated in more than 4 months. |
Notes |
Issue History | |||
Date Modified | Username | Field | Change |
2014-05-30 02:03 | Micha Renner | New Issue | |
2014-05-30 02:06 | Micha Renner | Note Added: 0035969 | |
2014-05-30 08:34 | Brad King | Note Added: 0035970 | |
2014-06-02 08:08 | Micha Renner | Note Added: 0035971 | |
2014-06-02 10:46 | Brad King | Note Added: 0036098 | |
2014-06-03 09:05 | Brad King | Note Added: 0036104 | |
2014-06-03 09:06 | Brad King | Assigned To | => Brad King |
2014-06-03 09:06 | Brad King | Status | new => resolved |
2014-06-03 09:06 | Brad King | Resolution | open => fixed |
2014-06-03 09:06 | Brad King | Fixed in Version | => CMake 3.0 |
2014-06-03 09:06 | Brad King | Target Version | => CMake 3.0 |
2014-06-03 09:06 | Brad King | Summary | Strange error message with INTERFACE_INCLUDE_DIRECTORIES => Document build v. install values for INTERFACE_INCLUDE_DIRECTORIES |
2015-01-05 08:38 | Robert Maynard | Note Added: 0037557 | |
2015-01-05 08:38 | Robert Maynard | Status | resolved => closed |
Issue History |
Copyright © 2000 - 2018 MantisBT Team |