On Thu, Dec 10, 2015 at 12:15 AM, Petr Kmoch wrote:
> Hi,
>
> Side note: you probably shouldn't be using the -l prefix with arguments to
> target_link_libraries(). The arguments are normally supposed to be either
> CMake target names, or full paths to the libraries you want to link. No need
> to p
Hi,
yes, that is indeed expected behaviour. target_link_libraries() takes a
CMake list of arguments - one library per argument. When you surround the
thing with quotes, it's a single argument (containing some spaces). So for
this call:
target_link_libraries(Debug "${VTK_LIBRARIES} -lsri-spatialff
robert@kalymnos:~/Code/Debug/normandBuild$ cmake --version
cmake version 3.4.1
Reading docs trying to understand why my build works when I write
target_link_libraries(Debug ${VTK_LIBRARIES} -lsri-spatialfft
-lsri-spatial -lsri-memory)
but not when everything is protected in quotes:
target_li
Reading docs trying to understand why my build works when I write
target_link_libraries(Debug ${VTK_LIBRARIES} -lsri-spatialfft
-lsri-spatial -lsri-memory)
but does not work when everything is protected in quotes:
target_link_libraries(Debug "${VTK_LIBRARIES} -lsri-spatialfft
-lsri-spatial -