View Issue Details [ Jump to Notes ] | [ Print ] | ||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||
0015687 | CMake | CMake | public | 2015-08-07 04:07 | 2016-06-10 14:31 | ||||
Reporter | Adn | ||||||||
Assigned To | Gregor Jasny | ||||||||
Priority | normal | Severity | minor | Reproducibility | always | ||||
Status | closed | Resolution | moved | ||||||
Platform | Apple | OS | OS X | OS Version | 10.9.5 | ||||
Product Version | CMake 3.3 | ||||||||
Target Version | Fixed in Version | ||||||||
Summary | 0015687: target_include_directories(): SYSTEM option does not seem to work when targeting Xcode. | ||||||||
Description | Following the documentation for target_include_directories(): http://www.cmake.org/cmake/help/v3.0/command/target_include_directories.html [^] We tried to provide the SYSTEM argument to target_include_directories(), to prevent a third party library to issue a lot of warnings. We expected it to put the library's include path on the C++ flags line, behind "-isystem", but it had actually no effect, still using this path as if SYSTEM was not given. We attached in "Steps To Reproduce" the minimal example reproducing this problem in our environment: *CMake v3.3.0 (also tested with v3.0.0 for the same results) *OS X 10.9.5 *Xcode 5.1.1 There is a mailing list thread discussion this issue, that seems to point to the incriminated code: http://www.cmake.org/pipermail/cmake/2015-August/061322.html [^] | ||||||||
Steps To Reproduce | cmake_minimum_required(VERSION 3.0) find_package(Boost 1.49 COMPONENTS) project(system_dependencies) add_executable(${PROJECT_NAME} main.cpp) target_include_directories(${PROJECT_NAME} SYSTEM PUBLIC ${Boost_INCLUDE_DIRS}) | ||||||||
Additional Information | There is also a Stack Overflow question: http://stackoverflow.com/q/31722426 [^] | ||||||||
Tags | No tags attached. | ||||||||
Attached Files | |||||||||
Relationships | ||||||
|
Relationships |
Notes | |
(0039250) Gregor Jasny (developer) 2015-08-07 04:35 |
I have a proof of concept patch at home. Basically it used the same functions as for Makefile builds and puts the proper -isystem and -I flags into the CFLAGS variable list and omits putting stuff into the Xcode HEADER_SEARCH_PATHS. It does the same for Frameworks. |
(0039712) Szymon Kurek (reporter) 2015-10-31 13:18 |
Any progress on this? It's a blocker for us - the amount of warnings generated by xcodebuild for a project with boost exceeds 5 GB, crashing the compiler. If no progress on the fix, do you know of any workaround? |
(0039717) Szymon Kurek (reporter) 2015-11-02 04:46 |
Workaround: adding the CXX compilation flag --system-header-prefix=boost/ |
(0039829) Gregor Jasny (developer) 2015-11-02 09:39 |
We use the following:if(XCODE) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -isystem ${Boost_INCLUDE_DIRS}") endif(XCODE) |
(0040549) Adn (reporter) 2016-02-25 08:58 |
Any progress on this bug ? We also use a workaround, but it would still be great to see this fixed in a further release. |
(0040551) Gregor Jasny (developer) 2016-02-25 09:47 edited on: 2016-02-25 09:48 |
I had to revert the change because it broke Xcode <= 5 Did not find time to follow-up, yet. Maybe this weekend. |
(0040554) Adn (reporter) 2016-02-26 06:32 |
Hi Gregor, Thank you for you swift response and the time you invest on this topic. We are very interested by any progress in this direction! |
(0042818) Kitware Robot (administrator) 2016-06-10 14:29 |
Resolving issue as `moved`. This issue tracker is no longer used. Further discussion of this issue may take place in the current CMake Issues page linked in the banner at the top of this page. |
Notes |
Issue History | |||
Date Modified | Username | Field | Change |
2015-08-07 04:07 | Adn | New Issue | |
2015-08-07 04:35 | Gregor Jasny | Note Added: 0039250 | |
2015-08-07 04:35 | Gregor Jasny | Assigned To | => Gregor Jasny |
2015-08-07 04:35 | Gregor Jasny | Status | new => assigned |
2015-08-07 04:41 | Gregor Jasny | Relationship added | related to 0010837 |
2015-10-31 13:18 | Szymon Kurek | Note Added: 0039712 | |
2015-11-02 04:46 | Szymon Kurek | Note Added: 0039717 | |
2015-11-02 09:39 | Gregor Jasny | Note Added: 0039829 | |
2016-02-25 08:58 | Adn | Note Added: 0040549 | |
2016-02-25 09:47 | Gregor Jasny | Note Added: 0040551 | |
2016-02-25 09:48 | Gregor Jasny | Note Edited: 0040551 | |
2016-02-26 06:32 | Adn | Note Added: 0040554 | |
2016-06-10 14:29 | Kitware Robot | Note Added: 0042818 | |
2016-06-10 14:29 | Kitware Robot | Status | assigned => resolved |
2016-06-10 14:29 | Kitware Robot | Resolution | open => moved |
2016-06-10 14:31 | Kitware Robot | Status | resolved => closed |
Issue History |
Copyright © 2000 - 2018 MantisBT Team |