Re: [CMake] CMake target_link_libraries items should be quoted or not? Linux/Ubuntu 14.04 cmake 3.4.1

2015-12-10 Thread J Decker
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

Re: [CMake] CMake target_link_libraries items should be quoted or not? Linux/Ubuntu 14.04 cmake 3.4.1

2015-12-10 Thread Petr Kmoch
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}

[CMake] CMake target_link_libraries() items should be quoted or not? Linux/Ubuntu 14.04 cmake 3.4.1

2015-12-09 Thread Normand Robert
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

[CMake] CMake target_link_libraries items should be quoted or not? Linux/Ubuntu 14.04 cmake 3.4.1

2015-12-09 Thread Normand Robert
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: