MantisBT - CMake
View Issue Details
0012420CMakeCMakepublic2011-08-25 01:442012-09-03 16:01
Bhadresh Desai 
Brad King 
normalmajoralways
closedfixed 
UnixAIX5.3
CMake 2.8.5 
CMake 2.8.9CMake 2.8.9 
0012420: CMake fails to identify the compiler
CMake fails to identify compiler as a result you cannot build even a simple C/C++ program on AIX 5.3
The issue is converting CMakeCXXCompilerId.cpp.in and CMakeCCompilerId.c.in to CMakeCXXCompilerId.cpp and CMakeCCompilerId.c
For some reason the first character in file is missed out when creating the .cpp and .c file.

As a work around I had to put additional space at the beginning of the file.

Also there is issue around @CMAKE_CXX_COMPILER_ID_PLATFORM_CONTENT@ in both files.
I had to add " /" (a space and /) in front of @CMAKE_CXX_COMPILER_ID_PLATFORM_CONTENT@ to get it working.

I am attaching both modified files.
No tags attached.
has duplicate 0013149closed Brad King cmTryCompileExec fails on AIX 5.2 
? CMakeCXXCompilerId.cpp.in (2,556) 2011-08-25 01:44
https://public.kitware.com/Bug/file/4019/CMakeCXXCompilerId.cpp.in
? CMakeCCompilerId.c.in (2,763) 2011-08-25 01:45
https://public.kitware.com/Bug/file/4020/CMakeCCompilerId.c.in
Issue History
2011-08-25 01:44Bhadresh DesaiNew Issue
2011-08-25 01:44Bhadresh DesaiFile Added: CMakeCXXCompilerId.cpp.in
2011-08-25 01:45Bhadresh DesaiFile Added: CMakeCCompilerId.c.in
2012-04-19 10:16Brad KingRelationship addedhas duplicate 0013149
2012-04-19 14:30Brad KingNote Added: 0029265
2012-04-19 14:30Brad KingStatusnew => resolved
2012-04-19 14:30Brad KingResolutionopen => fixed
2012-04-19 14:30Brad KingAssigned To => Brad King
2012-04-19 14:30Brad KingFixed in Version => CMake 2.8.9
2012-04-19 14:30Brad KingTarget Version => CMake 2.8.9
2012-09-03 16:01David ColeNote Added: 0030866
2012-09-03 16:01David ColeStatusresolved => closed

Notes
(0029265)
Brad King   
2012-04-19 14:30   
A fix to this issue was contributed through issue 0013149:

 http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=b3c77889 [^]
(0030866)
David Cole   
2012-09-03 16:01   
Closing resolved issues that have not been updated in more than 4 months.