Hi!
We have a problem in our cmake project, where cmake links all libraries
two times. This makes it impossible to link static libraries.
The libraries
appear only once in target_link_libraries() and that also only appears
once.
Has someone idea what we could be doing wrong?
Thank you,
Dennis
On Wednesday 04 August 2010 08:30:49 Dennis Schridde wrote:
Hi!
We
have a problem in our cmake project, where cmake links all libraries
two
times. This makes it impossible to link static libraries.
The libraries
appear only once in target_link_libraries() and that also only appears
once.
* I also set link_directories to paths containing the
libraries.
This is wrong. LINK_DIRECTORIES should be a list of directories, where
libraries might be located, but not the libraries itself.
___
Powered by www.kitware.com
Visit other
On 8/4/10 2:06 AM, Denis Scherbakov wrote:
* I also set link_directories to paths containing the
libraries.
This is wrong. LINK_DIRECTORIES should be a list of directories, where
libraries might be located, but not the libraries itself.
Or better yet, skip the link_directories command and
On Wednesday 04 August 2010 09:06:06 Denis Scherbakov wrote:
* I also
set link_directories to paths containing the libraries.
This is wrong.
LINK_DIRECTORIES should be a list of directories, where
libraries might be
located, but not the libraries itself.
Er, sorry, I meant to paths to
On Wednesday 04 August 2010 09:14:29 Ryan Pavlik wrote:
On 8/4/10 2:06
AM, Denis Scherbakov wrote:
* I also set link_directories to paths
containing the
libraries.
This is wrong. LINK_DIRECTORIES
should be a list of directories, where
libraries might be located, but
not the
I searched some more and found a trigger for this
behaviour:
--
PROJECT(test)
cmake_minimum_required(VERSION
2.6)
find_package(Qt4
REQUIRED)
include(${QT_USE_FILE})
set(Boost_ADDITIONAL_VERSIONS 1.38 1.39
1.40 1.41 1.42)
find_package(Boost REQUIRED COMPONENTS
thread)
find_package(GLU
2010/8/4 Dennis Schridde devuran...@gmx.net:
I am
using Fedora release 12 and cmake version 2.6-patch 4.
The issue is not
reproducible on Gentoo/Linux and cmake version 2.8.1.
Is cmake-2.6 still being maintained?
I don't think so.
I think Bill told that 2.6.4 was the last release for
FindQt4.cmake has been fixed so it doesn't potentially introduce this double
linking problem.
If you can upgrade, 2.8 would help you.
Clint
On Aug 4, 2010, at 2:51 AM, Dennis Schridde wrote:
I searched some more and found a trigger for this
behaviour:
--
PROJECT(test)
On Wednesday 04 August 2010 14:37:03 Eric Noulard wrote:
2010/8/4 Dennis
Schridde devuran...@gmx.net:
Otherwise I will suggest an update to our
admins. (Is
cmake-2.8 available for Fedora 12?)
Official F12 repo
contains 2.6.4
10 matches
Mail list logo