[CMake] How can I write cmake file for _mm_malloc?

Denis Scherbakov denis_scherbakov at yahoo.com
Wed Dec 9 05:04:20 EST 2009


Did you link necessary libraries with TARGET_LINK_LIBRARIES?

Denis


--- On Wed, 12/9/09, Water Lin <WaterLin at ymail.com> wrote:

> From: Water Lin <WaterLin at ymail.com>
> Subject: [CMake] How can I write cmake file for _mm_malloc?
> To: cmake at cmake.org
> Date: Wednesday, December 9, 2009, 1:51 AM
> 
> I am a new guy for CMake tool and I am trying to learn it.
> 
> Now in my program, I need to use function _mm_malloc, but I
> don't know
> how I can involve it in CMakeLists.txt file?
> 
> After generating the makefile and compiling by command
> make, the shell
> always prompts me "undefined reference to `_mm_malloc'".
> 
> Hope somebody can help me. Thanks



      


More information about the CMake mailing list