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

2013-05-23 Thread Bogdan Cristea
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 versio

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

2013-05-23 Thread Brad King
On 05/23/2013 12:59 PM, Bogdan Cristea wrote: > 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

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

2013-05-23 Thread Stephen Kelly
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 co

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

2013-05-23 Thread Bill Hoffman
On 5/23/2013 1:48 PM, Stephen Kelly 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 longe

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

2013-05-23 Thread Stephen Kelly
Bill Hoffman wrote: > On 5/23/2013 1:48 PM, Stephen Kelly 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 >>> > >>

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

2013-05-23 Thread Bogdan Cristea
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

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

2013-05-24 Thread Brad King
On 05/23/2013 02:58 PM, Bogdan Cristea wrote: > Attached you shall find the test file Thanks, Bogdan. Stephen, I can reproduce this on Linux using code of the form include(CheckFunctionExists) set(CMAKE_REQUIRED_LIBRARIES "/path/with space/libfoo.a") check_function_exists("foo" HAVE_FOO) The

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

2013-05-24 Thread Brad King
On 05/24/2013 04:20 PM, Brad King wrote: > The failure "git bisect"s to this commit: > > http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=236133e7 The problem is in this code: ... libsToLink += argv[i] + " "; ... fprintf(fout, "TARGET_LINK_LIBRARIES(%s %s)\n",

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

2013-05-24 Thread Brad King
On 05/24/2013 04:24 PM, Brad King wrote: > It does not individually re-quote the library names so when the > generated CMakeLists.txt file is parsed it separates on spaces. Fixed: http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=e65ef08b -Brad -- Powered by www.kitware.com Visit other Kitwa

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

2013-05-27 Thread Stephen Kelly
Brad King wrote: > On 05/24/2013 04:24 PM, Brad King wrote: >> It does not individually re-quote the library names so when the >> generated CMakeLists.txt file is parsed it separates on spaces. > > Fixed: > > http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=e65ef08b > Great, thanks! -- Po

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

2013-05-28 Thread Stephen Kelly
Brad King wrote: > On 05/24/2013 04:24 PM, Brad King wrote: >> It does not individually re-quote the library names so when the >> generated CMakeLists.txt file is parsed it separates on spaces. > > Fixed: > > http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=e65ef08b > This commit causes the