Did you link necessary libraries with TARGET_LINK_LIBRARIES? Denis
--- On Wed, 12/9/09, Water Lin <[email protected]> wrote: > From: Water Lin <[email protected]> > Subject: [CMake] How can I write cmake file for _mm_malloc? > To: [email protected] > 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 _______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
