Toolchain. Command line: cmake -DCMAKE_TOOLCHAIN_FILE:string="%~dp0\zosport.cmake" -G"Unix Makefiles" .\
But Hendrik asked: Shouldn't this be SET(CMAKE_C_FLAGS_INIT "cc.rex dcc.exe") and that helped: I get past CMAKE. But then MAKE invokes Regina with no operands. I tried adding another SET(CMAKE_C_FLAGS "cc.rex dcc.exe") but that didn't help. In CMakeCache.txt I see: CMAKE_C_COMPILER:FILEPATH=C:/Program Files/Regina/regina.exe and CMAKE_C_COMPILER_WITH_PATH:FILEPATH=C:/Program Files/Regina/regina.exe and CMAKE_C_FLAGS:STRING= cc.rex dcc.exe So I'm confused?? But we're making progress! -----Original Message----- From: Eric Noulard [mailto:eric.noul...@gmail.com] Sent: Thursday, October 27, 2011 9:00 AM To: Phil Smith Cc: Bill Hoffman; Brad King; cmake@cmake.org; Janet Graff; a.neundorf-w...@gmx.net Subject: Re: [CMake] CMake still broken post-2.8.1 2011/10/27 Phil Smith <p...@voltage.com>: > Hmm. My zosport.cmake is now (comments/blank lines removed): > > SET(CMAKE_SYSTEM_NAME "IBM_ZOS") > SET(CMAKE_C_COMPILER_ID_RUN 1) > SET(CMAKE_C_PLATFORM_ID "MyPlatform") > SET(CMAKE_C_COMPILER_ID "MyCompiler") > SET(CMAKE_C_COMPILER "regina") > SET(CMAKE_C_FLAGS "cc.rex dcc.exe") > SET(CMAKE_C_CREATE_STATIC_LIBRARY "DAR -rv <TARGET> <OBJECTS>") > SET(CMAKE_C_LINK_EXECUTABLE "plink.exe > \"-S$ENV{DIGNUS_PROGRAM}/objs_norent/&M\" <OBJECTS> -o <TARGET>") > > I get: Did you put the code above in a Platform file or a Toolchain file? What is the exact command line did you use to get the following? > -- Found assembler: C:/SVN/Dignus/asmit.bat > -- Check for working C compiler: C:/Program Files/Regina/regina.exe > -- Check for working C compiler: C:/Program Files/Regina/regina.exe -- broken > CMake Error at C:/Program Files (x86)/CMake > 2.8/share/cmake-2.8/Modules/CMakeTestCCompiler.cmake:52 (MESSAGE): > The C compiler "C:/Program Files/Regina/regina.exe" is not able to compile > a simple test program. > > So it looks like it's still trying to run the C compiler?! > > ...phsiii > -----Original Message----- > From: Bill Hoffman [mailto:bill.hoff...@kitware.com] > Sent: Wednesday, October 26, 2011 12:43 PM > To: Phil Smith > Cc: a.neundorf-w...@gmx.net; cmake@cmake.org; David Cole; Janet Graff; Brad > King > Subject: Re: [CMake] CMake still broken post-2.8.1 > > So, since this is a cross compile situation, there is really no need to > run the compiler id code. You should be able to put the following into > your toolchain file and avoid the compiler id check code altogether: > > > SET(CMAKE_C_COMPILER_ID_RUN 1) > SET(CMAKE_C_PLATFORM_ID "MyPlatform") > SET(CMAKE_C_COMPILER_ID "MyCompiler") > > > Does that work, or does it get stuck somewhere else? > > -Bill > -- > > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the CMake FAQ at: > http://www.cmake.org/Wiki/CMake_FAQ > > Follow this link to subscribe/unsubscribe: > http://www.cmake.org/mailman/listinfo/cmake > -- Erk Membre de l'April - « promouvoir et défendre le logiciel libre » - http://www.april.org -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake