[CMake] Bug in cmake 2.8.11 when detecting sgemm function from MKL 11.0

Bogdan Cristea cristeab at gmail.com
Thu May 23 14:58:30 EDT 2013


Hi

Attached you shall find the test file (note that you need to install MKL
11.0). I have used Windows 8 x86_64 and Visual Studio 2010 x86. The problem
seems to be in the way the variable CMAKE_REQUIRED_LIBRARIES is parsed. The
commented line represents a different error case. With cmake v2.8.10 I
don't get any error.

regards
Bogdan


On Thu, May 23, 2013 at 7:48 PM, Stephen Kelly <steveire at gmail.com> wrote:

> Bogdan Cristea wrote:
>
> > Hi
> >
> > I have noticed that the latest cmake release, 2.8.11, does not detect
> > sgemm using check_function_exists macro from mkl_rt.lib library. The
> error
> > message says;
> >
> > Cannot find C:\Program.obj
> >
> > It seems to me that the paths with spaces are no longer handled
> correctly.
> > Installing the previous version, 2.8.10, everything works as expected.
> >
> > Also I have noticed that the 2.8.11 installer seems to create two entries
> > in Windows program database. I am using Windows 8 x86_64
>
> Can you create a minimal testcase? I'm not familiar with sgemm or MKL. Can
> you say more? What makes you think it is related to whitespace?
>
> Thanks,
>
> Steve.
>
>
> --
>
> 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
>



-- 
Bogdan Cristea
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20130523/1e85c204/attachment.htm>
-------------- next part --------------
cmake_minimum_required ( VERSION 2.8.6 )

include(CheckFunctionExists)

set(_name sgemm)
set(CMAKE_FIND_LIBRARY_SUFFIXES .lib ${CMAKE_FIND_LIBRARY_SUFFIXES})
#set(CMAKE_REQUIRED_LIBRARIES "C:\\Program Files (x86)\\Intel\\Composer XE 2013\\mkl\\lib\\ia32\\mkl_rt.lib")
set(CMAKE_REQUIRED_LIBRARIES "C:/Program Files (x86)/Intel/Composer XE 2013/mkl/lib/ia32/mkl_rt.lib")

check_function_exists("${_name}" ${_name}_WORKS)


More information about the CMake mailing list