View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0007407CMakeCMakepublic2008-07-27 07:112009-02-26 09:14
ReporterHartmut Seichter 
Assigned ToBrad King 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSOS Version
Product VersionCMake-2-6 
Target VersionFixed in Version 
Summary0007407: Xcode 3.1 and include_directories
DescriptionIf include_directories point to a path like "/usr/local/include" it will not show up in the "Header Search Path" in Xcode 3.1

My current workaround is to use an extra dash (here OSG_INCLUDE_DIR is "/usr/local/include":

if(APPLE)
    include_directories("/${OSG_INCLUDE_DIR}")
else(APPLE)
    include_directories(${OSG_INCLUDE_DIR})
endif(APPLE)

It will show up correctly no in the Xcode project.

TagsNo tags attached.
Attached Files

 Relationships
child of 0008598closedBrad King implicit include directory suppression may be outdated 

  Notes
(0014315)
Hartmut Seichter (reporter)
2008-12-09 17:37

This issue persits in 2.6.3 RC 5
(0015341)
Brad King (manager)
2009-02-24 15:40

I've removed include dir suppression outright. See issue 0008598.
(0015412)
Eric Wing (reporter)
2009-02-25 23:05

I just tried the final release of 2.6.3. In Xcode 3.1.2 (Xcode generator), CMake still seems to be suppressing /usr/local/include even though suppression claims to have been removed. This is causing very bad headaches when used with SDK's as header files won't be found.

Example CMake project that reproduces the problem. For a single file project with a file called main.c (and it includes a fake header file you put in /usr/local/include) try:

cmake_minimum_required(VERSION 2.6)
SET(CMAKE_OSX_ARCHITECTURES "ppc;i386" CACHE STRING "Build architectures for OSX" FORCE)
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -mmacosx-version-min=10.5" CACHE STRING "Flags used by the compiler during all build types." FORCE)

INCLUDE_DIRECTORIES(/usr/local/include /opt/local/include)
ADD_EXECUTABLE(foo main.c)

Generate an Xcode project. You can see in Xcode that the Header paths gets the /opt/local/include, but not /usr/local/include. Compiling should fail because the header you put in /usr/local/include can't be found (assuming it wasn't accidentally found elsewhere).
(0015413)
Eric Wing (reporter)
2009-02-25 23:19

Just to be clear, this is a problem with both the Makefile and Xcode generator.
(0015421)
Brad King (manager)
2009-02-26 09:14

The new implementation does not suppress /usr/local/include at all. The code was completely removed.

 Issue History
Date Modified Username Field Change
2008-07-27 07:11 Hartmut Seichter New Issue
2008-08-19 16:45 Bill Hoffman Status new => assigned
2008-08-19 16:45 Bill Hoffman Assigned To => Bill Hoffman
2008-12-09 17:37 Hartmut Seichter Note Added: 0014315
2009-02-24 15:24 Brad King Relationship added child of 0008598
2009-02-24 15:25 Brad King Assigned To Bill Hoffman => Brad King
2009-02-24 15:40 Brad King Note Added: 0015341
2009-02-24 15:40 Brad King Status assigned => closed
2009-02-24 15:40 Brad King Resolution open => fixed
2009-02-25 23:05 Eric Wing Note Added: 0015412
2009-02-25 23:05 Eric Wing Status closed => feedback
2009-02-25 23:05 Eric Wing Resolution fixed => reopened
2009-02-25 23:19 Eric Wing Note Added: 0015413
2009-02-26 09:14 Brad King Note Added: 0015421
2009-02-26 09:14 Brad King Status feedback => closed
2009-02-26 09:14 Brad King Resolution reopened => fixed


Copyright © 2000 - 2018 MantisBT Team