[CMake] cmake-2.8.12: generator expression error when linker flags have comma
Rolf Eike Beer
eike at sf-mail.de
Sun Oct 20 04:13:10 EDT 2013
Am Samstag, 19. Oktober 2013, 18:01:55 schrieb Jed Brown:
> I just upgraded from cmake-2.8.11.2 to 2.8.12 and now get errors when a
> comma ',' appears in a linker flag. Test case below. Note that this is
> but one of many reasons for a comma to appear in linker flags.
>
> https://gist.github.com/jedbrown/7062540
>
> $ mkdir build && cd build
> $ cmake -DDEP_LIBS:STRING='-Wl,--start-group -llapack -lblas
> -Wl,--end-group' ..
> target_link_libraries(foo ${DEP_LIBS})
target_link_libraries is about libraries. No wonder it breaks if you pass
other stuff in there. I wonder if using FindBLAS and FindLAPACK would help you
out of that.
Eike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://www.cmake.org/pipermail/cmake/attachments/20131020/c54c3711/attachment.pgp>
More information about the CMake
mailing list