[CMake] ASM support

Alexander Neundorf a.neundorf-work at gmx.net
Tue Feb 3 15:41:29 EST 2009


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


More information about the CMake mailing list