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

Brad King brad.king at kitware.com
Fri May 24 16:20:24 EDT 2013


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 check fails even for an existing symbol and CMakeFiles/CMakeError.log
complains:

 make[1]: *** No rule to make target `/path/with', ...

The failure "git bisect"s to this commit:

 http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=236133e7

-Brad


More information about the CMake mailing list