[CMake] ASM on the Mac
Mike Krus
mike at mve.com
Mon Nov 5 10:54:41 EST 2012
Hi
got some issues compiling ASM of Mac, mixed with other C++ code. In my CMake file I use:
INCLUDE(CheckLanguage)
check_language(ASM)
if(CMAKE_ASM_COMPILER)
enable_language(ASM)
LIST(APPEND nm_tls_ALL_src src/FlowScalarField64.asm)
ADD_DEFINITIONS( -DINTEL_SIMD )
else()
message(STATUS "No ASM support")
endif()
nm_tls_ALL_src is a list of C++ files. It's then used to create a shared library.
Using the ninja generator, I get this error when compiling:
Building ASM object products/4DMove/tools/sediment/CMakeFiles/nm_tls_sediment.dir/src/FlowScalarField64.asm.o
i686-apple-darwin11-llvm-gcc-4.2: ../../products/4DMove/tools/sediment/src/FlowScalarField64.asm: linker input file unused because linking not done
Seems that gcc is thinking that file is an object file already and trying to link it rather than compile it.
Any suggestions?
Mike
----
Mike Krus (PhD) - Principal Software Engineer
Midland Valley Exploration
144 West George Street
Glasgow G2 2HG, UK
Tel: +44 141 332 2681
Fax: +44 141 332 6792
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20121105/1e7df043/attachment-0001.htm>
More information about the CMake
mailing list