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})

Re: [CMake] link_directories issue, cmake 2.8.5

2011-11-25 Thread Vladimir Chebotarev
Hi, Michael. On Fri, Nov 25, 2011 at 03:37:38AM +0100, Michael Hertling wrote: On 11/23/2011 05:39 PM, Vladimir Chebotarev wrote: I've just found an issue with link_directories and cmake 2.8.5. If I give an absolute but not normalized path like c:/bla-bla-bla/../bla/bla as its argument

Re: [CMake] link_directories issue, cmake 2.8.5

2011-11-25 Thread Andreas Pakulat
On 25.11.11 15:06:02, Vladimir Chebotarev wrote: Hi, Michael. On Fri, Nov 25, 2011 at 03:37:38AM +0100, Michael Hertling wrote: On 11/23/2011 05:39 PM, Vladimir Chebotarev wrote: I've just found an issue with link_directories and cmake 2.8.5. If I give an absolute but not normalized

Re: [CMake] link_directories issue, cmake 2.8.5

2011-11-25 Thread Vladimir Chebotarev
On Fri, Nov 25, 2011 at 01:33:49PM +0100, Andreas Pakulat wrote: On 25.11.11 15:06:02, Vladimir Chebotarev wrote: Actually, I already have normalized the path by myself, using get_filename_component, and everything is ok at the moment. Original message should have been treated as a bug

Re: [CMake] link_directories issue, cmake 2.8.5

2011-11-25 Thread Alexander Neundorf
On Friday 25 November 2011, Michael Hertling wrote: On 11/23/2011 05:39 PM, Vladimir Chebotarev wrote: Hello. I've just found an issue with link_directories and cmake 2.8.5. If I give an absolute but not normalized path like c:/bla-bla-bla/../bla/bla as its argument (with default

Re: [CMake] link_directories issue, cmake 2.8.5

2011-11-24 Thread Michael Hertling
On 11/23/2011 05:39 PM, Vladimir Chebotarev wrote: Hello. I've just found an issue with link_directories and cmake 2.8.5. If I give an absolute but not normalized path like c:/bla-bla-bla/../bla/bla as its argument (with default CMP0015), cmake thinks it is relative path and shows a warning

[CMake] link_directories issue, cmake 2.8.5

2011-11-23 Thread Vladimir Chebotarev
Hello. I've just found an issue with link_directories and cmake 2.8.5. If I give an absolute but not normalized path like c:/bla-bla-bla/../bla/bla as its argument (with default CMP0015), cmake thinks it is relative path and shows a warning about explicitly undefined policy. Also it normalizes

[CMake] LINK_DIRECTORIES visual studio 2010

2011-07-29 Thread Louis Hoefler
Hello everyone. I have a simple CMake file cmake_minimum_required(VERSION 2.8) IF(DEFINED USEFCGI) SET(BACKENDLIB wtfcgi) ELSE(DEFINED USEFCGI) SET(BACKENDLIB wthttp) ENDIF(DEFINED USEFCGI) ADD_EXECUTABLE(construction.wt construction.cpp ) if(WIN32)

Re: [CMake] LINK_DIRECTORIES visual studio 2010

2011-07-29 Thread Michael Hertling
On 07/29/2011 05:13 PM, Louis Hoefler wrote: Hello everyone. I have a simple CMake file cmake_minimum_required(VERSION 2.8) IF(DEFINED USEFCGI) SET(BACKENDLIB wtfcgi) ELSE(DEFINED USEFCGI) SET(BACKENDLIB wthttp) ENDIF(DEFINED USEFCGI) ADD_EXECUTABLE(construction.wt

Re: [CMake] LINK_DIRECTORIES visual studio 2010

2011-07-29 Thread Louis Hoefler
Ah, yes this one works: cmake_minimum_required(VERSION 2.8) IF(DEFINED USEFCGI) SET(BACKENDLIB wtfcgi) ELSE(DEFINED USEFCGI) SET(BACKENDLIB wthttp) ENDIF(DEFINED USEFCGI) if(WIN32) INCLUDE_DIRECTORIES(D:/work/boost_1_46_1 D:/work/wt-3.1.10/src D:/work/wt-3.1.10/build)

[CMake] link_directories include_directories

2010-03-10 Thread Benoit Thomas
Hello, Are there equivalent to link_directories include_directories which would require a target ? Thanks, Ben. ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please

Re: [CMake] link_directories include_directories

2010-03-10 Thread Alexander Neundorf
On Wednesday 10 March 2010, Benoit Thomas wrote: Hello, Are there equivalent to link_directories If you use target_link_libraries(), and all the libraries you link against have the full path (which is highly recommended) a per-target link_directories() is not necessary.

[CMake] LINK_DIRECTORIES ?

2009-08-05 Thread motes motes
I get the point of INCLUDE_DIRECTORIES (the various files used must be located). But what is the point of LINK_DIRECTORIES and TARGET_LINK_LIBRARIES? In a CMakeLists.txt file I have: .. INCLUDE_DIRECTORIES(${ELASTIX_SRC}/Components/Optimizers/StandardGradientDescent) ... ...

Re: [CMake] LINK_DIRECTORIES ?

2009-08-05 Thread James C. Sutherland
On Aug 5, 2009, at 1:33 AM, motes motes wrote: I get the point of INCLUDE_DIRECTORIES (the various files used must be located). But what is the point of LINK_DIRECTORIES and TARGET_LINK_LIBRARIES? LINK_DIRECTORIES specifies the path to search for libraries whereas

Re: [CMake] LINK_DIRECTORIES ?

2009-08-05 Thread Andreas Pakulat
On 05.08.09 07:52:32, James C. Sutherland wrote: On Aug 5, 2009, at 1:33 AM, motes motes wrote: I get the point of INCLUDE_DIRECTORIES (the various files used must be located). But what is the point of LINK_DIRECTORIES and TARGET_LINK_LIBRARIES? LINK_DIRECTORIES specifies the path to

Re: [CMake] LINK_DIRECTORIES before ADD_EXECUTABLE?

2009-05-19 Thread John Platt
@cmake.org Sent: Monday, May 18, 2009 11:36 PM Subject: Re: [CMake] LINK_DIRECTORIES before ADD_EXECUTABLE? On Mon, May 18, 2009 at 11:21:17PM +0100, John Platt wrote: INCLUDE_DIRECTORIES( /usr/local/boost_1_39_0 ) ADD_LIBRARY( lib1 STATIC ${lib1_srcs} ) ADD_EXECUTABLE( lib1test lib1test.cpp

[CMake] LINK_DIRECTORIES before ADD_EXECUTABLE?

2009-05-18 Thread John Platt
Hi, I have built a static library lib1 and test program lib1test using the following CMAKE 2.6.2 commands without problems. INCLUDE_DIRECTORIES( /usr/local/boost_1_39_0 ) ADD_LIBRARY( lib1 STATIC ${lib1_srcs} ) ADD_EXECUTABLE( lib1test lib1test.cpp ) LINK_DIRECTORIES( /usr/local/lib ) # boost

Re: [CMake] LINK_DIRECTORIES before ADD_EXECUTABLE?

2009-05-18 Thread Tyler Roscoe
On Mon, May 18, 2009 at 11:21:17PM +0100, John Platt wrote: INCLUDE_DIRECTORIES( /usr/local/boost_1_39_0 ) ADD_LIBRARY( lib1 STATIC ${lib1_srcs} ) ADD_EXECUTABLE( lib1test lib1test.cpp ) LINK_DIRECTORIES( /usr/local/lib ) # boost stuff TARGET_LINK_LIBRARIES( lib1test lib1

Re: [CMake] LINK_DIRECTORIES gives errors

2007-05-30 Thread abhijeet mhatre
Actually, it is trying to say that target HelloWorld is not built by the project. The TARGET_LINK_LIBRARIES command must come AFTER the ADD_EXECUTABLE command so that cmake will know what the target is. Hey Thanks Bill and Vitor. It works perfectly now.

[CMake] LINK_DIRECTORIES gives errors

2007-05-29 Thread abhijeet mhatre
Hi list I am using cmake as a tool for generating Linux makefiles. I read the documentation and made a CmakeLists.txt file. but when I do a cmake . , I get errors here is the CmakeLists.txt file -- PROJECT(myproject) SET_TARGET_PROPERTIES(HelloWorld PROPERTIES

Re: [CMake] LINK_DIRECTORIES gives errors

2007-05-29 Thread Bill Hoffman
abhijeet mhatre wrote: Hi list I am using cmake as a tool for generating Linux makefiles. I read the documentation and made a CmakeLists.txt file. but when I do a cmake . , I get errors here is the CmakeLists.txt file -- PROJECT(myproject)

Re: [CMake] LINK_DIRECTORIES in MinGw

2007-05-21 Thread Jesús López
Hi, I'm using the MinGW (non MSYS) generator and adding an LINK_DIRECTORIES(xxx) seems to be doing nothing in the linking stage (make verbose=1), and I'm forced to use: SET_TARGET_PROPERTIES(mytarget PROPERTIES LINK_FLAGS -Lxxx ) Should I file a bug? Thnx, Jesús López

[CMake] LINK_DIRECTORIES problem

2006-12-13 Thread Kedzierski, Artur CIV NAVSURFWARCENDIV CORONA
Hi, I've noticed that when I pass a directory through LINK_DIRECTORIES after ADD_LIBRARY, the directory is not added to the library search path. However, INCLUDE_DIRECTORIES does not suffer such problem. This causes a problem when I try to use Boost package. For example: