MantisBT - CMake
View Issue Details
0015535CMakeCMakepublic2015-04-25 18:002015-11-02 09:13
herc4mac 
Brad King 
normalminoralways
closedfixed 
Apple MacOS XYosemite 10.10.3
CMake 3.2.2 
CMake 3.3CMake 3.3 
0015535: cmake generates bad -F option for a 9 character include directory on OS X
see summary

fails only on OS X

running make
received ...
fatal error: 'config.h' file not found
# include "config.h"

reproducible when building open object rexx

created
/opt

/opt/ooRexx.svn

created /opt/test
cd /opt/test

cmake ../ooRexx.svn

make

received the message

fatal error: 'config.h' file not found
# include "config.h"
found first on make 3.2.1

cmake adds a flag with -F/opt instead of -I/opt/test
-F is the flag for Frameworks IIRC

does not happen for Hercules ( the IBM s370/s390/zARCH ) emulator

it could be a problem with CMakelists.txt,
I would like anyway some suggestion on how to debug the problem
No tags attached.
Issue History
2015-04-25 18:00herc4macNew Issue
2015-04-25 18:03herc4macNote Added: 0038599
2015-04-27 11:51Brad KingNote Added: 0038621
2015-04-27 11:51Brad KingAssigned To => Brad King
2015-04-27 11:51Brad KingStatusnew => resolved
2015-04-27 11:51Brad KingResolutionopen => fixed
2015-04-27 11:51Brad KingFixed in Version => CMake 3.3
2015-04-27 11:51Brad KingTarget Version => CMake 3.3
2015-04-27 11:51Brad KingSummaryrunning make in a directory named test fails for open object rexx => cmake generates bad -F option for a 9 character include directory on OS X
2015-04-27 11:52Brad KingNote Added: 0038622
2015-04-27 12:46herc4macNote Added: 0038623
2015-11-02 09:13Robert MaynardNote Added: 0039791
2015-11-02 09:13Robert MaynardStatusresolved => closed

Notes
(0038599)
herc4mac   
2015-04-25 18:03   
my bad
the title has a typo, instead of make should have been cmake/make
sorry for the inconvenience
(0038621)
Brad King   
2015-04-27 11:51   
Fixed:

 cmSystemTools: Fix IsPathToFramework implementation
 http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=c46490da [^]
(0038622)
Brad King   
2015-04-27 11:52   
This could happen for any build tree with an absolute path of length 9 (e.g. /opt/test or /tmp/four).
(0038623)
herc4mac   
2015-04-27 12:46   
applied the mod to 3.2.2 source , and it works !

Thank You for the quick action.
Enrico
(0039791)
Robert Maynard   
2015-11-02 09:13   
Closing resolved issues that have not been updated in more than 4 months.