Re: [CMake] PROPERTY for list of link libraries

2016-01-25 Thread Tom Kacvinsky
; 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

[CMake] making a custom target like add_library()

2016-01-25 Thread Tom Kacvinsky
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

Re: [CMake] PROPERTY for list of link libraries

2016-01-22 Thread Tom Kacvinsky
"${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

Re: [CMake] PROPERTY for list of link libraries

2016-01-22 Thread Tom Kacvinsky
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

[CMake] PROPERTY for list of link libraries

2016-01-22 Thread Tom Kacvinsky
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

Re: [CMake] How to get generated dependencies

2016-01-13 Thread Tom Kacvinsky
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

Re: [CMake] How to get generated dependencies

2016-01-13 Thread Tom Kacvinsky
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

Re: [CMake] How to get generated dependencies

2016-01-13 Thread Tom Kacvinsky
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

Re: [CMake] How to get generated dependencies

2016-01-13 Thread Tom Kacvinsky
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

[CMake] How to get generated dependencies

2016-01-12 Thread Tom Kacvinsky
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

Re: [CMake] Error generating using "NMake Makefiles JOM"

2016-01-04 Thread Tom Kacvinsky
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,

Re: [CMake] transitive dependencies (again)

2015-12-15 Thread Tom Kacvinsky
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, >> >&

Re: [CMake] transitive dependencies (again)

2015-12-14 Thread Tom Kacvinsky
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

Re: [CMake] transitive dependencies (again)

2015-12-14 Thread Tom Kacvinsky
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

[CMake] transitive dependencies (again)

2015-12-14 Thread Tom Kacvinsky
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

[CMake] Regression in 3.3.2 for linking

2015-11-11 Thread Tom Kacvinsky
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

Re: [CMake] Finding debug Qt libraries without CMAKE_BUILD_TYPE set to None

2015-10-23 Thread Tom Kacvinsky
) 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

Re: [CMake] Finding debug Qt libraries without CMAKE_BUILD_TYPE set to None

2015-10-23 Thread Tom Kacvinsky
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

[CMake] Obtaining build time stamps

2015-10-23 Thread Tom Kacvinsky
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

[CMake] Finding debug Qt libraries without CMAKE_BUILD_TYPE set to None

2015-10-22 Thread Tom Kacvinsky
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

[CMake] jom and cmake

2015-10-05 Thread Tom Kacvinsky
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

Re: [CMake] jom and cmake

2015-10-05 Thread Tom Kacvinsky
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: > >

Re: [CMake] add_library(foo SHARED...) is not creating a PDB file

2015-09-22 Thread Tom Kacvinsky
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

Re: [CMake] add(library foo SHARED...) is not creating a PDB file

2015-09-22 Thread Tom Kacvinsky
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 >

Re: [CMake] add_library(foo SHARED...) is not creating a PDB file

2015-09-22 Thread Tom Kacvinsky
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

Re: [CMake] add_library(foo SHARED...) is not creating a PDB file

2015-09-22 Thread Tom Kacvinsky
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 >

[CMake] add(library foo SHARED...) is not creating a PDB file

2015-09-21 Thread Tom Kacvinsky
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 $

Re: [CMake] OBJECT library and $

2015-09-18 Thread Tom Kacvinsky
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

[CMake] OBJECT library and $

2015-09-18 Thread Tom Kacvinsky
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

[CMake] Creating two libraries from the same set of source code, but with different compiler options

2015-06-19 Thread Tom Kacvinsky
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

[CMake] -Wno-dev not working?

2015-05-26 Thread Tom Kacvinsky
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

[CMake] add_executable with generated files

2015-05-20 Thread Tom Kacvinsky
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

Re: [CMake] add_executable with generated files

2015-05-20 Thread Tom Kacvinsky
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

Re: [CMake] add_executable with generated files

2015-05-20 Thread Tom Kacvinsky
, 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

[CMake] macros with arguments

2015-05-19 Thread Tom Kacvinsky
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

Re: [CMake] macros with arguments

2015-05-19 Thread Tom Kacvinsky
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

Re: [CMake] Problem with multiple expressions with if()

2015-05-15 Thread Tom Kacvinsky
. 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

Re: [CMake] Problem with multiple expressions with if()

2015-05-15 Thread Tom Kacvinsky
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

Re: [CMake] Problem with multiple expressions with if()

2015-05-15 Thread Tom Kacvinsky
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

Re: [CMake] Switching configuration to icc

2015-05-10 Thread Tom Kacvinsky
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

Re: [CMake] Switching configuration to icc

2015-05-10 Thread Tom Kacvinsky
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

Re: [CMake] Switching configuration to icc

2015-05-10 Thread Tom Kacvinsky
-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

[CMake] Windows, export lits (.def files) and automation

2015-03-27 Thread Tom Kacvinsky
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

Re: [CMake] Problem with library link order

2015-01-21 Thread Tom Kacvinsky
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

Re: [CMake] Having a real hardtime installing CMake on a Linux cluster machine

2014-11-05 Thread Tom Kacvinsky
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

[CMake] Forcing order of link libraries

2014-09-25 Thread Tom Kacvinsky
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

[CMake] Building library with a collection of source + pre-existing object files (which are not compiled via the cmake build system)

2014-09-09 Thread Tom Kacvinsky
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,

Re: [CMake] Building library with a collection of source + pre-existing object files (which are not compiled via the cmake build system)

2014-09-09 Thread Tom Kacvinsky
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

[CMake] Use of variables in generator expressions

2014-05-28 Thread Tom Kacvinsky
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

[CMake] CMAKE_{C, CXX}_IMPLICIT_LINK_LIBRARIES being used even though Ada is the current language.

2014-01-03 Thread Tom Kacvinsky
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

Re: [CMake] CMAKE_{C, CXX}_IMPLICIT_LINK_LIBRARIES being used even though Ada is the current language.

2014-01-03 Thread Tom Kacvinsky
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

[CMake] -lstdc++ being added to link options automatically

2014-01-02 Thread Tom Kacvinsky
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

[CMake] Contents of link.txt differ between Solaris 8 and Linux

2013-12-10 Thread Tom Kacvinsky
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