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
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
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})
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
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
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
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
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
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
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)
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
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)
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
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.
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)
...
...
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
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
@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
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
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
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.
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
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)
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
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:
25 matches
Mail list logo