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
http://stackoverflow.com/questions/31274577/cus
ely 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 did the trick. Time to u
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 wrote:
> I am now having a problem with transitive dependencies. I need all
> libraries that are linked in. I am missing the ones that are linked in
> tra
le(APPEND "${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 wrote:
>
On Fri, Jan 22, 2016 at 9:23 AM, Tom Kacvinsky
wrote:
> 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)
&g
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 for
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
wrote:
> I suppose what I could do is get the target properties for the
> compiler flags (will this include compiler defines and include
> di
om 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:
>>>
>>> On Wed, Jan 13, 2016 at 2:09 PM, J Decke
, it
would be nice if this could be exposed to the user
> On Wed, Jan 13, 2016 at 10:26 AM, Tom Kacvinsky
> wrote:
>> On Tue, Jan 12, 2016 at 9:58 AM, Tom Kacvinsky
>> wrote:
>>> Is there a way of invoking cmake to get the list of non-system header
>>> dependenc
On Tue, Jan 12, 2016 at 9:58 AM, Tom Kacvinsky
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 cmake has a way of
> doing this, I
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 g
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, but
> when I go to genera
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
> wrote:
>> Hi Petr,
>>
>>
>> On Mon, Dec 14, 2015 at 10:53 AM, Petr Kmoch wr
o 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
> wrote:
>>
>> I am getting link errors because cmake is adding transitive
>&g
On Mon, Dec 14, 2015 at 9:34 AM, Tom Kacvinsky
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 an
> executable that depends on t
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 s
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 librar
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
ha
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 wrote:
> Here is what I tried for Qt4 (that is what I am using), using cm
)
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, 2015
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 suppor
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:
>
> https://cmake.org/cmake/help/v3.3/manual/cmake.1.html
>
>
Thanks gu
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
w
On Tue, Sep 22, 2015 at 11:19 AM, Brad King 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 because we are also usin
On Tue, Sep 22, 2015 at 9:57 AM, Tom Kacvinsky wrote:
>
>
> On Tue, Sep 22, 2015 at 9:41 AM, Brad King 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
On Tue, Sep 22, 2015 at 9:41 AM, Brad King 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
> > the cl option
On Mon, Sep 21, 2015 at 5:37 PM, Tom Kacvinsky 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
>
> )
>
> add_l
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
$
co
On Fri, Sep 18, 2015 at 3:08 PM, Tom Kacvinsky 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.lib exports.def
> DEPENDS export.py"
&
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 expression:
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 o
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 ex
On Wed, May 20, 2015 at 3:27 PM, Tom Kacvinsky 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 t
files, but add_executable does not?
On Wed, May 20, 2015 at 2:57 PM, Tom Kacvinsky 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:
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 extensions
On Tue, May 19, 2015 at 1:28 PM, Tom Kacvinsky 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 target
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 files
gt;
> Petr
>
> Petr,
I see where things went wrong now. 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,
On Fri, May 15, 2015 at 1:05 PM, Tom Kacvinsky wrote:
> On Fri, May 15, 2015 at 12:12 PM, Domen Vrankar
> wrote:
>
>> > if ((${CMAKE_SYSTEM_NAME} MATCHES "SunOS") or (DEFINED LINUX64))
>> > message(STATUS &qu
On Fri, May 15, 2015 at 12:12 PM, Domen Vrankar
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 built fro
Here is a simple CMakeList.txt:
# [
cmake_minimum_required(VERSION 2.8)
project(vectorcast)
if (${CMAKE_SYSTEM_NAME} MATCHES "Linux")
if (${CMAKE_SYSTEM_PROCESSOR} MATCHES "x86_64")
set(LINUX64 1)
else()
set(LINUX32 1)
endif()
endi
> On May 10, 2015, at 13:16, Rahul K Soni 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 as cmake
r Soni
> Scientist
> CSIR-IMMT
>
> Sent from iPad Rahul
>
>
>> On Sun, May 10, 2015 at 10:04 PM, Tom Kacvinsky
>> wrote:
>> CC=icc cmake should do the trick
>>
>>
>>
>> > On May 10, 2015, at 12:18, Rahul K Soni wrote:
&g
CC=icc cmake should do the trick
> On May 10, 2015, at 12:18, Rahul K Soni 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
> configuring things for gcc
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
; library link 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 am having a problem with the order
of libraries on the link line. In particular, there are some static
archives we build that depend on a third party static archive (one we don't
build - it comes with the Ada compiler we are using), yet the tghird part
a
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
wrote:
> Hi,
>
> The problem is relatively simple. I've downloaded cmake
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 sup
Thank you, Nils.
Tom
On Tue, Sep 9, 2014 at 11:25 AM, Nils Gladitz 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
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,
Hi,
I would like to do something like the following:
add_custom_command(TARGET ${target_name} POST_BUILD
COMMAND mt -manifest default.manifest
-outputresource:$;#1
)
The question I have is whether variables can be used in generator
expressions. Reading the docs, it is clear that I canno
s the right C/C++ run time libraries to the link line.
Tom
On Fri, Jan 3, 2014 at 2:48 PM, Alexander Neundorf
wrote:
> 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
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
tho
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 find
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
-aI/home/Users/tjk/ve
56 matches
Mail list logo