[CMake] ASM support
phil at voltage.com
Thu Feb 26 11:16:33 EST 2009
I got back on this, and found a big part of my problem. The Wiki page says:
"Edit CMakeASM_FOOInformation.cmake. ... then include the generic CMakeASMInformation.cmake."
"Edit CMakeDetermineASM_FOOCompiler.cmake. ...then include the generic file..."
What wasn't obvious to me (though of course it is now) was that the second "generic file" wasn't the same as the first. If the Wiki page could say "...then include the generic file CMakeDetermineASMCompiler.cmake" it would help.
ISTR that if you say INCLUDE(banana.cmake) it looks for it in the local directory, whereas INCLUDE(banana) looks for it in Modules. This could be made clearer too, as "include the generic CMakeASMInformation.cmake" is likely to result in the former.
Now...CMake says it works, but "make" says:
[ 11%] Building ASM_DIGNUS object CMakeFiles/zfpe.dir/temp/ZOSFINFO.asm.o
make: CMAKE_ASM_COMPILER: Command not found
make: *** [CMakeFiles/zfpe.dir/temp/ZOSFINFO.asm.o] Error 127
make: *** [CMakeFiles/zfpe.dir/all] Error 2
make: *** [all] Error 2
I thought the issue was related to using a front-end script for the assembler, such that the actual command (if typed on the commandline) to do an assembly would be "rexx.exe cc.rex dasm.exe" (with flags and operands after that), but I simplified it to just "dasm" and get the same error.
My CMakeASM_DIGNUSInformation.cmake is:
SET(CMAKE_ASM_DIGNUS_OUTPUT_EXTENSION ".o" )
SET(CMAKE_ASM_DIGNUS_COMPILE_OBJECT "<CMAKE_ASM_COMPILER> -o <OBJECT> <SOURCE>")
My CMakeDetermineASM_DIGNUSCompiler.cmake is:
My CMakeTestASM_DIGNUSCompiler.cmake is:
I'm sure this is something dumb, but ... ideas?
From: cmake-bounces at cmake.org [mailto:cmake-bounces at cmake.org] On Behalf Of Alexander Neundorf
Sent: Thursday, January 29, 2009 3:40 PM
To: cmake at cmake.org
Subject: Re: [CMake] ASM support
On Thursday 29 January 2009, Phil Smith wrote:
> Ok, I found http://www.cmake.org/Wiki/CMake/Assembler -- not sure how I
> missed it before.
It's only three weeks old or so.
CMake mailing list
CMake at cmake.org
More information about the CMake