You might find it interesting to look at build.ninja. By the looks of
it there's a (phony) target guving the dependencies of the library.
(That's called cmake_object_order_depends_target_internal_lib) and
CMakeFiles/app.dir/main.cpp.o is depending on that.
Presumably the idea is that there's no po
This works:
macro(bsPrintList)
foreach(l ${ARGN})
message(STATUS "List entry: ${l}")
endforeach()
endmacro()
bsPrintList(foo bar baz)
On Tue, 4 Jun 2019 at 22:14, Steven Truppe wrote:
>
> Hi everyone, like you know i'm relative new the cmake and i'm working my way
> through the book and
On Mon, 4 Mar 2019 at 04:00, Yu, Mingli wrote:
> Is there any means to make the logic run in /source/sql/CMakeLists.txt
> before which is in /source/libmysqld/CMakeLists.txt?
Use a dependency between targets. There's a limitation/bug with things
that depend on files created by add_custom_command
The behaviour's controlled by CMP0012. (The documentation for if()
doesn't seem as helpful as it could be. It does seem to suggest that
ON, TRUE, etc., ought to be true, without mentioning CMP0012.)
On Sat, 26 Jan 2019 at 17:22, frodak17 wrote:
>
> $ cmake --version
> cmake version 3.13.2
>
> $ c
S2017 does
not require ''NVIDIA Nsight Tegra Visual Studio Edition'. Is there a work
around for CMake to get it to generate native C++ Android projects for
VS2017?
Tool versions being used:
Visual Studio 15 2017
CMake 3.10.0-rc3
Android NDK r15c
Regards,
Bruce Elliott
--
Powered by
I don't have a solution for you, but I agree that this functionality would
be incredibly useful!
On Wed, 27 Sep 2017 at 01:39 Yegor Yefremov
wrote:
> I've seen, that CMake has updated UseSWIG in version 3.8.x. But it doesn't
> seem to support the following use case:
>
> swig -c++ -javascript -no
I can't link Open CV libraries with Visual Studio Community 2017 by
using CMake.
Where is the source code:C:/Users/John/OpenCV/sources
Where to build the binaries: C:/Users/John/OpenCV/build
Configure: Visual Studio 15 2017
I got error:
CMAKE_CONFIGURATION_TYPES Debug; Release
CMAKE_INSTALL_P
ithub page:
https://github.com/swig/swig/issues/1091#issuecomment-329606916
On Fri, 15 Sep 2017 at 12:33 Hendrik Sattler
wrote:
>
>
> Am 15. September 2017 15:23:42 MESZ schrieb Bruce Jones <
> bruce.david.jo...@gmail.com>:
> >Hi,
> >
> >I have a relatively
iated.
On Linux python fails to import the module with "undefined symbol".
If I build the projects by hand (not with CMake) they compile and link
successfully, and run successfully.
Any suggestions?
Cheers,
Bruce
--
Powered by www.kitware.com
Please keep messages on-topic and ch
On Mon, Apr 10, 2017 at 5:04 PM, Robert Dailey wrote:
> Actually I think your idea does work. Why do you think it won't? I'm
> using it right now and so far it seems OK.
I assumed (without testing, admittedly) is that it would fail if
someone used -D to set the value,
then changed some CMakeLists
On Mon, Apr 10, 2017 at 2:36 PM, Bruce Stephens
wrote:
> You could do something like
>
> if(NOT "${BUILD_VERSION}")
> set(BUILD_VERSION 1.2.3.4)
> endif()
That doesn't work at all, come to think of it. I suspect your best bet
is to handle
the caching yo
You could do something like
if(NOT "${BUILD_VERSION}")
set(BUILD_VERSION 1.2.3.4)
endif()
On Mon, Apr 10, 2017 at 2:29 PM, Robert Dailey wrote:
> I have a file called version.cmake that my root CMakeLists.txt
> includes. There is only a single line in this file:
>
> set( BUILD_VERSION 1.2.3.4
re
smoothly.
On Mon, Mar 27, 2017 at 4:08 PM, Michael Ellery wrote:
>
>> On Mar 27, 2017, at 6:31 AM, Bruce Stephens
>> wrote:
>>
>> I have a build with two or three tools that generate headers and
>> source files. Getting the source files compiled is easy e
I have a build with two or three tools that generate headers and
source files. Getting the source files compiled is easy enough: when
they're mentioned as source files (in add_library or add_executable)
the custom rule gets triggered.
But that doesn't seem to be true for header files included by
n
Looks like https://github.com/redguardtoo/cpputils-cmake might be involved...
On Fri, Sep 9, 2016 at 5:04 PM, Vania Joloboff wrote:
> On 09/09/2016 05:45 PM, Michael Ellery wrote:
>>
>> This kinda’ sounds like you are doing an in-source build. Are you certain
>> that your currrent/working directo
On Fri, Sep 9, 2016 at 4:45 PM, Michael Ellery wrote:
> This kinda’ sounds like you are doing an in-source build. Are you certain
> that your currrent/working directory is different from your source tree root
> when you run cmake? The typical way of doing this is just to make a
> subdirectory o
On Tue, May 24, 2016 at 3:52 AM, Eric Eide wrote:
> As a CMake newbie, I was afraid that I was overlooking some sort of
> "prepackaged" version of this.
Doesn't look like it, but I agree it's the kind of thing that might be usefully
included with CMake.
--
Powered by www.kitware.com
Please ke
On Mon, May 23, 2016 at 11:30 PM, Eric Eide wrote:
> Hi! I am a CMake newbie, and I have a question about examining the set of
> available Perl modules on a system.
>
> In CMake (version 2.8.12+), how can I test for the presence of a particular
> Perl module, e.g., "Sys::CPU"?
I think use execut
Sorry, that should obviously have gone to this mailing list.
-- Forwarded message --
From: Bruce Stephens
Date: Mon, May 23, 2016 at 2:40 PM
Subject: Using CPack to package things not built using CMake
To: cmake-develop...@cmake.org
Suppose I have a build which uses a number of
On Wed, Mar 9, 2016 at 9:27 PM, Nicholas Braden
wrote:
> I'm not sure which discussion you're referring to, so forgive me if
> this was already mentioned - but are you using a superproject to
> ensure that dependencies are built and installed before your own
> project? That is, all dependencies as
(This is really a continuation of a discussion from 25/26 January.)
I'm still confused about ExternalProject_Add and libraries.
I'd like to get to the point where I (or more likely a process
somewhere) can check out a project, then run cmake and ninja (or make
or whatever) and have that build the
In case anyone cares, I think https://github.com/brucestephens/CMake
contains a quick fix.
On Sat, Feb 20, 2016 at 7:17 PM, Bruce Stephens
wrote:
> Ah, yes. That looks like exactly the bug, thanks.
>
> So it's a straight bug in the ninja generator, not something deliberate
>
RSION).
On Sat, Feb 20, 2016 at 6:59 PM, wrote:
> Perhaps this bug report fits what you are seeing. Are you seeing this
> limitation in the ninja generator?
>
> https://cmake.org/Bug/view.php?id=14140
>
> Clint
>
> On Feb 20, 2016 11:49 AM, Bruce Stephens
> wrote:
> &
By the looks of it setting the SOVERSION when generating a SHARED library
creates the symbolic link, but it doesn't seem to use the -current_version
or -compatibility_version flags when linking.
Those flags are set as variables CMAKE_C_OSX_CURRENT_VERSION_FLAG and
CMAKE_C_OSX_COMPATIBILITY_VERSION
On Mon, Dec 21, 2015 at 10:11 PM, DJ wrote:
> One of the things that seems to me to be missing is some kind of quick
> description of the overall "theory of cmake". I am a top-down kind of
> person, so I really dislike being left with nothing but "here, type this
> in" which is what a lot of the
On Mon, Dec 7, 2015 at 9:08 AM, Nils Gladitz wrote:
> I would avoid creating these single use, per directory libraries entirely.
>
>
Well, creating the static libraries is obviously just an artifact of our
current
build scheme, so it makes sense to ditch it.
Creating these CMake object libraries
Any suggestions on how to organise that? Presumably there are
lots of examples in (for example) KDE, but I'm not familiar enough
with that codebase to be able to find them easily.
Currently our GNU Make build builds static libraries in the subdirectories,
then those are put into a big static libra
Can't vouch for 2.15. Are you able to use NSIS 2.46? This works for me
using CMake 2.8.12.2 (I also used a number of previous 2.8 versions
though can't be sure which ones).
On 19/03/14 12:37, Iosif Neitzke wrote:
> When trying to run CPack with NSIS 2.15, i get:
>
> CPack error : Problem checking
Checked Linux (Ubuntu 12.04).
2.8.12.2 works, so I'm guessing this is a Windows platform issue.
On 18/03/14 16:24, Bruce Cartland wrote:
> I'm upgrading my build from 2.8.8 to the latest toolset.
>
> At this stage I've only tried on Windows 2008 Server R2 Standard SP1 a
.dir/mpjdev_natmpjdev_Comm.c.o:
> /usr/java/latest/include/jni.h
> CMakeFiles/nativempjdev.dir/mpjdev_natmpjdev_Comm.c.o:
> /usr/java/latest/include/linux/jni_md.h
>
> Some how can't add *mpi.h *
>
> Does it mean this is not populated correctly ?*${MPI_C_INCLUDE_PATH}*
>
>
By quick Google search, I meant for "cmake project command". Not sure
how I determined this originally. It was a long time ago. Probably read,
re-read, and re-read the doco - it wasn't obvious. Anyway, hope it helps.
On 18/03/14 17:22, Bruce Cartland wrote:
> Try t
Try the project command
* project(yourProjectName C)
It's what I use.
Quick Google found this
* http://www.cmake.org/cmake/help/cmake2.6docs.html#command:project
On 18/03/14 17:09, Bibrak Qamar wrote:
> Hi,
>
> I am using cmake to create Makefile. I am using MPI in my project but
> I only wan
I'm upgrading my build from 2.8.8 to the latest toolset.
At this stage I've only tried on Windows 2008 Server R2 Standard SP1 and
Windows Server 2003 R2 SP2 (my Linux/Mac boxes are currently broken).
The particular part which fails is packaging the source - which uses the
ZIP generator
cpack --c
Hello,
I have a project that I'm packaging both as a DEB file and a tgz file. I've
included all necessary install() commands in my CMakeLists.txt, and have
specified "DEB;TGZ" as the generators for CPack.
I understand that if I want to include generator-specific CPack commands, I'll
have to in
I'm currently generating multiple distinct debian packages (runtime and
dev).
I have a typical cmake file with cpack commands in it ending with
"inlude(CPack)" . This generates the targets "package" and
"package-source". On debian platforms, I want "package_source" but I'd
like to redefine/ov
gs up.
Bruce
On 9/08/2012 1:27 PM, Doug wrote:
I've update my example code here to do this; it results in much easier
to configure individual packages than trying to force the components
(never designed for independent packages from one project), and is
extendable to support other generators t
ption: Demo package
doug@shadowmint:~/junk/cmake-multi-install/build$
~
Doug.
On Thu, Aug 9, 2012 at 9:44 AM, Bruce Cartland wrote:
Thanks for the sample - makes it a lot easier to experiment.
I've been playing around with it but can't get it to do what I want (or is
claimed). It alway
o add 'COMPONENT runtime'
to specify the component a file belongs to.
Hth,
Micha
On 08/08/2012 08:59 AM, Bruce wrote:
Hi
Got my shiny new cmake build system going for my project on
windows, Ubuntu, and Mac.
Despite a fair bit of research I'm st
Hi
Got my shiny new cmake build system going for my project on windows, Ubuntu,
and Mac.
Despite a fair bit of research I'm still not sure how to generate 2 separate
debian packages from the same cmake files - say myapp.deb and myapp-dev.deb.
I think what I want is somehow for it to write out
39 matches
Mail list logo