[CMake] ASM support

Phil Smith phil at voltage.com
Tue Feb 3 16:12:28 EST 2009


Yes, I do mean for rexx.exe to be invoked. For the C and C++ compilers, I'm running cc.rex as a front-end; I was planning on doing the same for the assembler. I'll need to change dcxx.exe to dasm.exe at some point, but for now I was just trying to get it to fail in a "reasonable" way.

-----Original Message-----
From: cmake-bounces at cmake.org [mailto:cmake-bounces at cmake.org] On Behalf Of Alexander Neundorf
Sent: Tuesday, February 03, 2009 3:41 PM
To: cmake at cmake.org
Subject: Re: [CMake] ASM support

On Thursday 29 January 2009, Phil Smith wrote:
> zosport.cmake (in my build directory):
> ------------------------
> # This is a CMake Toolchain file, required for cross-compiling using
> # the Dignus cross-compilers on Windows, compiling for z/OS.
>
> # Tell CMAKE the target system name
> SET(CMAKE_SYSTEM_NAME "IBM_ZOS")
>
> # Specify the cross-compilers
> SET(CMAKE_C_COMPILER   "rexx.exe" "cc.rex dcc.exe")
> SET(CMAKE_CXX_COMPILER "rexx.exe" "cc.rex dcxx.exe")
> SET(CMAKE_ASM_DIGNUS_COMPILER "rexx.exe" "cc.rex dcxx.exe")

Why do you put "rexx.exe" "cc.rex dcxx.exe" there ?
This means that in all three cases you create a list consisting of two
elements, the first one being "rexx.exe", the second one being "cc.rex
dcxx.exe". Is this what you want ?
CMake then tries to find an executable named "cc.rex dcxx.exe" which probably
doesn't exist.
Do you want three elements in the list ?
Then just do
SET(CMAKE_C_COMPILER   rexx.exe cc.rex dcc.exe )
or
SET(CMAKE_C_COMPILER   "rexx.exe;cc.rex;dcc.exe" )

Or do you really need to run dcc.exe via cc.rex ? Then we need to do something
else.

Alex
_______________________________________________
CMake mailing list
CMake at cmake.org
http://www.cmake.org/mailman/listinfo/cmake


More information about the CMake mailing list