[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:24:55 EDT 2013


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",
              targetName,
              libsToLink.c_str());
      ...

It does not individually re-quote the library names so when the
generated CMakeLists.txt file is parsed it separates on spaces.

-Brad


More information about the CMake mailing list