; expressions.
>
> It recursively resolves all dependencies for the given configuration
> (Debug, Release, ...)
>
> Tamas
>
>
> On Fri, Jan 22, 2016 at 11:01 PM, Tom Kacvinsky <
> tom.kacvin...@vectorcast.com> wrote:
>
>> Ah yes, that was it. Switching to 3.3.2 d
I create a DLL and import library via custom commands, but for my purposes
right now, I need these libraries to be treated as if they were generated
with add_library() (for the project I am workingon where I get transitive
dependencies);
I read this
"${CMAKE_BINARY_DIR}/libs.txt" "${lib}\n")
endif()
endforeach()
I am using cmake 2.8.11.2, perhaps this property doesn't do what I thought
it would with this version of cmake?
Thanks,
Tom
On Fri, Jan 22, 2016 at 9:23 AM, Tom Kacvinsky <tom.kacvin...@vectorcast.com
Ah yes, that was it. Switching to 3.3.2 did the trick. Time to upgrade
cmake.
On Fri, Jan 22, 2016 at 4:40 PM, Tom Kacvinsky <tom.kacvin...@vectorcast.com
> wrote:
> I am now having a problem with transitive dependencies. I need all
> libraries that are linked in. I am miss
I have need for a cross platform methods of getting libraries linked
into an executable.
Say for instance, we have
add_library(foo STATIC a.c)
add_exceutable(bar b.c)
target_link_libraries(bar foo)
So I know for that bar has a dependency on foo.lib (on Windows) and
libfoo.a on Linux.
And so
On Tue, Jan 12, 2016 at 9:58 AM, Tom Kacvinsky
<tom.kacvin...@vectorcast.com> wrote:
> Is there a way of invoking cmake to get the list of non-system header
> dependencies, like invoking gcc with -MMD? I need to find out the
> list of non-system header dependencies and I know
tion time? If the latter, it
would be nice if this could be exposed to the user
> On Wed, Jan 13, 2016 at 10:26 AM, Tom Kacvinsky
> <tom.kacvin...@vectorcast.com> wrote:
>> On Tue, Jan 12, 2016 at 9:58 AM, Tom Kacvinsky
>> <tom.kacvin...@vectorcast.com> wrote:
>>> Is ther
Should have read the docs before I asked that last question:
file(STRINGS ...) is what I want
On Wed, Jan 13, 2016 at 2:59 PM, Tom Kacvinsky
<tom.kacvin...@vectorcast.com> wrote:
> I suppose what I could do is get the target properties for the
> compiler flags (will this include comp
j s <j.s4...@gmail.com> wrote:
>> From what I remember from the mailing list a long time ago, CMake has its
>> own dependency generator independent of the CPP.
>>
> it does; but not for all generators
>>
>> On 1/13/16 1:20 PM, Tom Kacvinsky wrote:
>&g
Is there a way of invoking cmake to get the list of non-system header
dependencies, like invoking gcc with -MMD? I need to find out the
list of non-system header dependencies and I know cmake has a way of
doing this, I just need to know if there is command I can put in the
CMakeLists.txt file to
On Sun, Jan 3, 2016 at 11:05 PM, Bill Church wrote:
> I've used this option successfully for a while, but with an older version
> of CMake (3.x, unsure which one exactly). Recently had to do a full
> wipe/reinstall of my machine, so I pulled down the latest CMake 3.4.1,
dencies
linger. I'll keep digging, this didn't happen before so something
must have changed in the configuration when I merged against master
for our code base.
> On Mon, Dec 14, 2015 at 9:59 AM, Tom Kacvinsky
> <tom.kacvin...@vectorcast.com> wrote:
>> Hi Petr,
>>
>&
On Mon, Dec 14, 2015 at 9:34 AM, Tom Kacvinsky
<tom.kacvin...@vectorcast.com> wrote:
> I am getting link errors because cmake is adding transitive
> dependencies. I am building a DLL which depends on a static archive
> (and is marked as such with add_dependencies), but when I link
ing the MSVC tool chain
to build the DLL (i.e., not using add_library and target_link_libraries).
I sent a separate reply detailing what I am using to build the DLL.
>
> On Mon, Dec 14, 2015 at 3:34 PM, Tom Kacvinsky
> <tom.kacvin...@vectorcast.com> wrote:
>>
>> I am getti
I am getting link errors because cmake is adding transitive
dependencies. I am building a DLL which depends on a static archive
(and is marked as such with add_dependencies), but when I link an
executable that depends on the DLL, both libraries (import library for
the DLL and static archive) are
I am seeing a regression is 3.3.2 (compiled from source on 64 bit Linux -
CentOS 5.0) in the link phase whereby libraries/object files are repeated
on the link line, resulting in multiple definition errors (and I don't want
to use -Wl,-z,muldefs).
There is also another issue where Qt shared
)
But apparently the set_target_properties trick only works with the FindQt5
module, as I am still getting the release version of the libraries. Any
idea what I can do? I am guessing
MAP_IMPORTED_CONFIG_COVERAGE
is not the target property I want to set.
Thanks,
Tom
On Thu, Oct 22, 20
That was it, I had to replace
MAP_IMPORTED_CONFIG_COVERAGE
with
MAP_IMPORTED_CONFIG_NONE
as I have
set(CMAKE_BUILD_TYPE NONE)
I hope this is useful to others.
On Fri, Oct 23, 2015 at 9:38 AM, Tom Kacvinsky <tom.kacvin...@vectorcast.com
> wrote:
> Here is what I trie
Is there a way of tracking the time individual compiles take using cmake?
What I am after is a cmake variable to set, or a cmake invocation option
that will in the end generate Makefiles that output the time it takes for
each compile/link. I am trying to track down a build performance issue and
I have need to find the debug version of Qt libraries. From the
documentation I read, the libraries found are based on the CMAKE_BUILD_TYPE
vale. So it it is set to Release, the release versions are found, and if
set to DEBUG, the debug versions are found. Unfortunately, due to use of
Ada
We are using "JOM Makefiles NMakefiles" as our generator. Everything is
fine, but every now and again I need to investigate the temporary files tha
jom produces. I can do this by using the /KEEPTEMPFILES option to jom, but
where I am stymied is how to configure cmake so that when jom is invoked
On Mon, Oct 5, 2015 at 1:16 PM, Parag Chandra
wrote:
> If I’m not mistaken, anything you place after a ‘—‘ (that’s two dash
> characters) will be passed directly to the underlying build tool that cmake
> is driving. See here:
>
>
On Tue, Sep 22, 2015 at 11:19 AM, Brad King <brad.k...@kitware.com> wrote:
> On 09/22/2015 11:16 AM, Tom Kacvinsky wrote:
> > having two builds (debug and release) doesn't fit our workflow
>
> Try using the RelWithDebInfo configuration.
>
> Eeeek, that won't work be
On Mon, Sep 21, 2015 at 5:37 PM, Tom Kacvinsky <tom.kacvin...@vectorcast.com
> wrote:
> I am using cmake 2.8.11.2 on Windows 7 with Visual Studio 2008
>
> This is the snipped of my CMakeLists.txt file
>
> add_library(commoncpp_objects
> OBJECT
>
On Tue, Sep 22, 2015 at 9:57 AM, Tom Kacvinsky <tom.kacvin...@vectorcast.com
> wrote:
>
>
> On Tue, Sep 22, 2015 at 9:41 AM, Brad King <brad.k...@kitware.com> wrote:
>
>> On 09/22/2015 09:25 AM, Tom Kacvinsky wrote:
>> > I am using cmake 2.8.11.2 on Win
On Tue, Sep 22, 2015 at 9:41 AM, Brad King <brad.k...@kitware.com> wrote:
> On 09/22/2015 09:25 AM, Tom Kacvinsky wrote:
> > I am using cmake 2.8.11.2 on Windows 7 with Visual Studio 2008
> [snip]
> > whether listing the object files or compiling from source, there is
>
I am using cmake 2.8.11.2 on Windows 7 with Visual Studio 2008
This is the snipped of my CMakeLists.txt file
add_library(commoncpp_objects
OBJECT
)
add_library(commoncpp_static STATIC $)
add_dependencies(commoncpp_static commoncpp_objects)
add_library(commoncpp SHARED
$
On Fri, Sep 18, 2015 at 3:08 PM, Tom Kacvinsky <tom.kacvin...@vectorcast.com
> wrote:
> Snippet:
>
> add_libary(foo OBJECT a.c b.c)
>
> add_custom_command(
> OUTPUT exports.def
> COMMAND lib /out:static.lib $
> COMMAND python export.py" static.li
Snippet:
add_libary(foo OBJECT a.c b.c)
add_custom_command(
OUTPUT exports.def
COMMAND lib /out:static.lib $
COMMAND python export.py" static.lib exports.def
DEPENDS export.py"
)
Results in:
CMake Error at CMakeLists.txt:289 (add_custom_command):
Error evaluating generator
I have need to build two libraries, each based on the same base code, but
each library is built with different compiler options. I know how to force
the compilation options to be what I want, the problem I am having is
envisioning how to do this within one CMakeLists.txt file. What I am hung
up
Using cmake 2.8.11.2 built from source on Linux. I am using -Wno-dev at
generation time:
CC=gcc cmake -Wno-dev ..
but I see messages like this:
Warning: Source file license_mailer_pkg.ads is listed multiple times for
target license_gen
I thought -Wno-dev would turn this off. This is an
I have need to make an executable that depends on a generated file. I've
read several tutorials on how to do this, but even after following those
instructions, I get this error:
CMake Error at CMakeLists.txt:436 (add_executable):
Cannot find source file:
.chop/maint.adb
Tried
On Wed, May 20, 2015 at 3:27 PM, Tom Kacvinsky tom.kacvin...@vectorcast.com
wrote:
On Wed, May 20, 2015 at 2:57 PM, Tom Kacvinsky
tom.kacvin...@vectorcast.com wrote:
I have need to make an executable that depends on a generated file. I've
read several tutorials on how to do
, but add_executable does not?
On Wed, May 20, 2015 at 2:57 PM, Tom Kacvinsky tom.kacvin...@vectorcast.com
wrote:
I have need to make an executable that depends on a generated file. I've
read several tutorials on how to do this, but even after following those
instructions, I get this error
HI,
Background: trying to build several executables that have the same target
link libraries, compile flags, etc..., but different source files. Rather
than duplicate all of the necessary bits for each target, I thought I'd
write a macro that takes in arguments (the target name and list of
On Tue, May 19, 2015 at 1:28 PM, Tom Kacvinsky tom.kacvin...@vectorcast.com
wrote:
HI,
Background: trying to build several executables that have the same target
link libraries, compile flags, etc..., but different source files. Rather
than duplicate all of the necessary bits for each
. I've taken your advice and that indeed
fixed the issue.
Tom
On Fri, May 15, 2015 at 8:07 PM, Tom Kacvinsky
tom.kacvin...@vectorcast.com wrote:
On Fri, May 15, 2015 at 1:05 PM, Tom Kacvinsky
tom.kacvin...@vectorcast.com wrote:
On Fri, May 15, 2015 at 12:12 PM, Domen Vrankar domen.vran
On Fri, May 15, 2015 at 12:12 PM, Domen Vrankar domen.vran...@gmail.com
wrote:
if ((${CMAKE_SYSTEM_NAME} MATCHES SunOS) or (DEFINED LINUX64))
message(STATUS On Solaris or 64 bit Linux)
endif()
# [
I'm using cmake version 2.8.11.2
On Fri, May 15, 2015 at 1:05 PM, Tom Kacvinsky tom.kacvin...@vectorcast.com
wrote:
On Fri, May 15, 2015 at 12:12 PM, Domen Vrankar domen.vran...@gmail.com
wrote:
if ((${CMAKE_SYSTEM_NAME} MATCHES SunOS) or (DEFINED LINUX64))
message(STATUS On Solaris or 64 bit Linux)
endif
On May 10, 2015, at 13:16, Rahul K Soni ra...@ismu.ac.in wrote:
Hi Petr
Is deleting the buildsysystem means deleting the CMakeCache.txt file. How to
set CC and CXX before configuring.
Thanks a lot in advance.
Shoot, I had top posted. Yes, you need to delete the bus directory
CC=icc cmake options should do the trick
On May 10, 2015, at 12:18, Rahul K Soni ra...@ismu.ac.in wrote:
Hello everyone
I am trying to configure vtk with cmake-3.2.2 in suse-hpc cluster. Prefeerred
compiler in that cluster is intel. But I don't know why when Cmake is always
-IMMT
Sent from iPad Rahul
On Sun, May 10, 2015 at 10:04 PM, Tom Kacvinsky
tom.kacvin...@vectorcast.com wrote:
CC=icc cmake options should do the trick
On May 10, 2015, at 12:18, Rahul K Soni ra...@ismu.ac.in wrote:
Hello everyone
I am trying to configure vtk with cmake
I have read the material concerning how to make a DLL on Windows with
exported symbols and it make sense. However, I would like to avoid
use of __declspec(dllexport) if at all possible. I know this is not
the recommended cmake way, but I am afrid that introducing
__declspec(dllexport) would lead
order is exactly as you specify in target_link_libraries...
each line following the last of the prior list so reording your library
link list should be doable
On Tue, Jan 20, 2015 at 9:57 AM, Tom Kacvinsky
tom.kacvin...@vectorcast.com wrote:
HI,
I am using cmake 2.8,11.2 on Linux. I
With bash:
CFLAGS=-IXXX CXXFLAGS=-IXXX LDFLAGS=-LXXX ./configure ...
This should indicate to configure that headers and libraries are found in
the locations you specify.
On Wed, Nov 5, 2014 at 3:01 PM, Joshua Studen joshua.stu...@gmail.com
wrote:
Hi,
The problem is relatively simple. I've
Hi,
Is there any way of forcing cmake to use the order of libraries I specify
instead of the order cmake calculates?
Thanks,
Tom
--
Powered by www.kitware.com
Please keep messages on-topic and check the CMake FAQ at:
http://www.cmake.org/Wiki/CMake_FAQ
Kitware offers various services to
Hi,
I have not been able to find this in the cmake documentation. I have a
collection of source that needs to be compiled via the cmake build system,
plus a collection of object files that were compiled outside the cmake
build system. I want to combine the two of these to make a shared library,
Thank you, Nils.
Tom
On Tue, Sep 9, 2014 at 11:25 AM, Nils Gladitz nilsglad...@gmail.com wrote:
On 09.09.2014 17:02, Tom Kacvinsky wrote:
Hi,
I have not been able to find this in the cmake documentation. I have a
collection of source that needs to be compiled via the cmake build system
Hi,
I would like to do something like the following:
add_custom_command(TARGET ${target_name} POST_BUILD
COMMAND mt -manifest default.manifest
-outputresource:$TARGET_FILE:${target_name};#1
)
The question I have is whether variables can be used in generator
expressions. Reading the
I sent an email yesterday about -lstdc++ showing up on my link line even
though I did not request it. And I was getting -lc and -lm multiple times.
After much digging, I tracked it down to CMAKE_CXX_IMPLICIT_LINK_LIBRARIES
and CMAKE_C_IMPLICIT_LINK_LIBRARIES being added to the link line, even
the right C/C++ run time libraries to the link line.
Tom
On Fri, Jan 3, 2014 at 2:48 PM, Alexander Neundorf
a.neundorf-w...@gmx.netwrote:
On Friday 03 January 2014, Tom Kacvinsky wrote:
I sent an email yesterday about -lstdc++ showing up on my link line even
though I did not request it. And I
Hi,
I am using the PLPlot Ada support for cmake, and all is well, except for
the following:
For some reason, I see the addition of -lstdc++ to the link options for
building Ada executables. the Ada code has zero dependencies on C++ object
code, so this is not necessary. But I can't seem to
Hi,
I am using cmake 2.8.11.2 on Solaris 8 and Ubuntu 12.04.2 LTS, built from
source using the GCC tool chain.
I noted that the link.txt for one of our binaries on Solaris 8 are:
/home/tjk/gnatpro-7.1.2/bin/gnatmake
-aI/home/Users/tjk/vector/build/cmake/SunOS/.common-enums
53 matches
Mail list logo