MantisBT - CMake
View Issue Details
0012358CMakeCMakepublic2011-07-25 08:512011-10-23 07:53
Johan Björk 
Alex Neundorf 
normalmajoralways
closedfixed 
Apple MacOS X10.4.10
CMake 2.8.5 
CMake 2.8.6CMake 2.8.6 
0012358: CMake fails to configure if assembly support can't be detected (OPTIONAL)
The statement
ENABLE_LANGUAGE(ASM OPTIONAL) can fail to configure if the type of the assembler can not be detected.

ie same as what happened to:
http://www.mail-archive.com/cmake@cmake.org/msg37309.html [^]
No tags attached.
patch enable_asm.patch (1,695) 2011-08-16 19:00
https://public.kitware.com/Bug/file/4006/enable_asm.patch
Issue History
2011-07-25 08:51Johan BjörkNew Issue
2011-07-25 15:33Alex NeundorfAssigned To => Alex Neundorf
2011-07-25 15:33Alex NeundorfStatusnew => assigned
2011-07-30 07:51Johan BjörkNote Added: 0027130
2011-07-30 07:52Johan BjörkNote Added: 0027131
2011-08-16 19:00Alex NeundorfFile Added: enable_asm.patch
2011-08-16 19:01Alex NeundorfNote Added: 0027209
2011-08-18 13:39Johan BjörkNote Added: 0027241
2011-08-22 17:39Alex NeundorfNote Added: 0027261
2011-08-22 17:39Alex NeundorfStatusassigned => closed
2011-08-22 17:39Alex NeundorfResolutionopen => fixed
2011-08-22 17:39Alex NeundorfFixed in Version => CMake 2.8.6
2011-08-22 17:39Alex NeundorfTarget Version => CMake 2.8.6

Notes
(0027130)
Johan Björk   
2011-07-30 07:51   
Example output from an unrecognized compiler:

-- Checked for GNU
-- Output: -Low Level Virtual Machine (http://llvm.org/ [^]):
  llvm version 2.9
  Optimized build.
  Built Jul 30 2011 (13:06:42).
  Host: x86_64-apple-darwin10
  Host CPU: i686

  Registered Targets:
    (none)
-
-- Result: -1-
-- Checked for HP
-- Output: -/usr/local/bin/morpher/morphcc: no input files
-
-- Result: -1-
-- Checked for Intel
-- Output: -Low Level Virtual Machine (http://llvm.org/ [^]):
  llvm version 2.9
  Optimized build.
  Built Jul 30 2011 (13:06:42).
  Host: x86_64-apple-darwin10
  Host CPU: i686

  Registered Targets:
    (none)
-
-- Result: -1-
-- Checked for SunPro
-- Output: -/usr/local/bin/morpher/morphcc: no input files
-
-- Result: -1-
-- Checked for XL
-- Output: -/usr/local/bin/morpher/morphcc: no input files
-
-- Result: -1-
-- Checked for TI_DSP
-- Output: -/usr/local/bin/morpher/morphcc: no input files
-
-- Result: -1-
-- The ASM compiler identification is unknown
-- Found assembler: /usr/local/bin/morpher/morphcc
CMake Error at /usr/local/Cellar/cmake/2.8.5/share/cmake/Modules/CMakeASMInformation.cmake:36 (MESSAGE):
  Did not find file Compiler/-ASM
(0027131)
Johan Björk   
2011-07-30 07:52   
I'm now allowed to change the relationship, but this is very similar to 0009220
(0027209)
Alex Neundorf   
2011-08-16 19:01   
Hi Johan,

please apply the attached patch enable_asm.patch to your cmake.
It should make enabling ASM optionally work again.
Please let me know whether it works for you or not.

Thanks
Alex
(0027241)
Johan Björk   
2011-08-18 13:39   
Works.
-- The ASM compiler identification is unknown
-- Found assembler: /usr/local/bin/morpher/morphcc
-- Warning: Did not find file Compiler/-ASM
(0027261)
Alex Neundorf   
2011-08-22 17:39   
Thanks.
It is now in cmake next, and should be in 2.8.6.

Alex