[CMake] FW: cmake newbie questions

Alexander Neundorf a.neundorf-work at gmx.net
Wed Jul 30 16:47:40 EDT 2008

On Wednesday 30 July 2008, Phil Smith wrote:
> But then it complains that there's no CMakeLists.txt in the directory. 
> Anyway, I wasn't clear: the same person isn't likely to be doing z/OS and
> Windows on the same machine.  But since the same CMakeLists.txt is to be
> used, I didn't want to hard-code anything in there.  I've changed to -G --
> somehow I missed that before (I did look, honest!).
> The Dignus C compiler defines __SYSC__ to 1, so I added:
> #elif defined(__SYSC__)
> # define COMPILER_ID "Dignus"
> to CMakeCCompilerId.c.in, but it made no difference.

It should. It has also to be done in CMakeCXXCompilerId.cpp.in.
Please try to compiler the file CMakeCCompilerId.c.in manually (and edit it 
before that appropriately, I think you can just remove the last line with the 
CMAKE_C_COMPILER_ID_PLATFORM_CONTENT. If it builds, please send me the 


> So I added:
> INCLUDE (CMakeForceCompiler)
> CMAKE_FORCE_C_COMPILER   (cc.bat Dignus)
> to my toolchain file, and that fixes both the whines about the C compiler
> ID and the copy errors (I'm sure of this because if I comment those 3 lines
> out again, both the whines and the copy errors are back).
> I then looked at the various platform files, and concluded that at this
> point, all I knew to try was:
> INCLUDE(Platform/UnixPaths)
> (in ZOS.cmake).
> With those changes, it looks like it's working:
> ------------------
> del CMakeCache.txt
> zcmake
> -- Looking for sys/types.h
> -- Looking for sys/types.h - not found
> -- Looking for stdint.h
> -- Looking for stdint.h - not found
> -- Looking for stddef.h
> -- Looking for stddef.h - not found
> -- Check size of unsigned long long
> -- Check size of unsigned long long - failed
> -- Check size of unsigned long
> -- Check size of unsigned long - failed
> -- Check size of unsigned int
> -- Check size of unsigned int - failed
> -- Check size of unsigned short
> -- Check size of unsigned short - failed
> -- Check size of long long
> -- Check size of long long - failed
> -- Configuring done
> -- Generating done
> -- Build files have been written to: C:/Documents and
> Settings/Voltage/svn/Toolkit/trunk/vtk-core ------------------
> Now, I'm sort of inclined to declare victory for now.  But should I? 

No, not really.
I suspect they are all the same error. CMake tries to find a string in the 
created executable, and I'd say it just doesn't find it (in all cases).
What format do these executables have ?


More information about the CMake mailing list