<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
</style>
</head>
<body class='hmmessage'>
I'm trying to compile a ASM file using cmake 2.6 (patch 4). I'm running visual studio 2008, under 64-bit Vista. Neither Win32 or x64 build work.<br><br>I have a simple test app (attached), with a single CPP file and an asm file. My cmakelists.txt looks like this (I have to include the .asm extension on the asm file or I will get a "cannot find source file" error):<br><br>ENABLE_LANGUAGE(ASM_MASM)<br>PROJECT(AsmTest)<br><br>ADD_EXECUTABLE(AsmTest asmtest AsmTestFunc.asm)<br><br>On a win32 VS2008 command prompt the cmake step completes correctly, as shown below, and the asm file is added to the project. But the custom build step for the ASM file is completely empty, so the assembler is never run.<br>C:\testcode\asmtest\cmake_win32>cmake -G "Visual Studio 9 2008" ..<br>-- Found assembler: C:/Program Files (x86)/Microsoft Visual Studio 9.0/VC/bin/ml.exe<br>-- Loaded CMakeASM_MASMInformation - ASM_MASM support is still experimental, please report issues<br>-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio 9.0/VC/bin/cl.exe<br>-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio 9.0/VC/bin/cl.exe -- works<br>-- Detecting C compiler ABI info<br>-- Detecting C compiler ABI info - done<br>-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio 9.0/VC/bin/cl.exe<br>-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio 9.0/VC/bin/cl.exe -- works<br>-- Detecting CXX compiler ABI info<br>-- Detecting CXX compiler ABI info - done<br>CMake Warning (dev) in CMakeLists.txt:<br> No cmake_minimum_required command is present. A line of code such as<br><br> cmake_minimum_required(VERSION 2.6)<br><br> should be added at the top of the file. The version specified may be lower<br> if you wish to support older CMake versions for this project. For more<br> information run "cmake --help-policy CMP0000".<br>This warning is for project developers. Use -Wno-dev to suppress it.<br><br>-- Configuring done<br>-- Generating done<br>-- Build files have been written to: C:/testcode/asmtest/cmake_win32<br><br>On a x64 command prompt (using the compiler string -G "Visual Studio 9 2008 Win64"), the result is identical except the cmake command outputs the error message "Assembler not found" (I'm guessing it still looking for ML.EXE instead of ML64.exe ?).<br><br>Any ideas ? If I want to circumvent the cmake ASM system entirely and use set up custom build myself (say associated with .s files), is there a tutorial on how to do this (using add_custom_command I assume ?)<br><br><br><br><br /><hr />Windows Live Messenger: Happy 10-Year Anniversary—get free winks and emoticons. <a href='http://clk.atdmt.com/UKM/go/157562755/direct/01/' target='_new'>Get Them Now</a></body>
</html>