Re: [CMake] link_directories, MSVC and $(Configuration)

2011-12-28 Thread Hauke Heibel
On Tue, Dec 27, 2011 at 4:55 PM, Rolf Eike Beer e...@sf-mail.de wrote: Don't use link_directories. Ever. You don't want to use it. Surely. It does not what you think it does. It only exists to create trouble, unexpected behaviour and questions to this list ;) If that were possible it would be

Re: [CMake] link_directories, MSVC and $(Configuration)

2011-12-27 Thread Rolf Eike Beer
Am Dienstag, 27. Dezember 2011, 16:07:46 schrieb Hauke Heibel: Hi all, I am wondering whether it is intended that the link_directories is appending the $(Configuration) sub-directory only to the last directory when a list of directories is passed to it? I had to write something like

[CMake] link_directories, MSVC and $(Configuration)

2011-12-27 Thread Hauke Heibel
Hi all, I am wondering whether it is intended that the link_directories is appending the $(Configuration) sub-directory only to the last directory when a list of directories is passed to it? I had to write something like foreach(link_dir ${LIBRARY_DIRS}) link_directories(${link_dir})