Re: [CMake] Should header files be listed for a target?

2019-09-11 Thread Alexander Neundorf
On Mittwoch, 11. September 2019 21:22:04 CEST Kyle Edwards via CMake wrote: > On Wed, 2019-09-11 at 22:00 +0300, Avraham Shukron wrote: > > On Wed, Sep 11, 2019 at 9:49 PM Kyle Edwards > > > m> wrote: > > > You can list them or not list them. CMake will recognize them as > > > header > > > files

Re: [CMake] Install without building unittests

2019-03-28 Thread Alexander Neundorf
On 2019 M03 28, Thu 18:22:03 CET Scott Bloom wrote: > Just a note, for google later on… 😊 > > The default appears to have the variable unset, so it doesn’t show up in the > list of variables in ccmake or the cmake-gui. > I also added it to my system before any INSTALL command was called. I don’

Re: [CMake] link only with targets feature

2019-02-12 Thread Alexander Neundorf
On 2019 M02 12, Tue 08:02:43 CET Starka Tomáš wrote: > tldr; > It would be wonderful to have function or signature for > target_link_libraries tha would link only to a targets. Did I overlook > something? > > like target_link_libraries(name [PUBLIC...] TARGETS myFavouriteLib ... > QUIET/VERBOSE) >

Re: [CMake] List all packages

2019-01-13 Thread Alexander Neundorf
On 2019 M01 13, Sun 09:43:03 CET Lectem wrote: > Hi, > > Is there a way to list all the packages (both config files and find-modules) > that find_package could find ? Could we even imagine this would also permit > to list the variables and targets created in it ? I think that would be a > very hel

Re: [CMake] Removing RPATH from existing binaries

2019-01-07 Thread Alexander Neundorf
On 2019 M01 5, Sat 08:06:31 CET Federico Milano wrote: > Hi. When packaging my application, I'm using install (FILES...) to copy > some third party executables to my binary folder. > > 1. I do not know if I'm doing it right or if I should use install > (PROGRAMS...) > 2. Some of the binaries have

Re: [CMake] Default library name?

2018-11-05 Thread Alexander Neundorf
On 2018 M11 5, Mon 13:20:32 CET Robert Maynard wrote: > Yes, you can do that. I don't know if there is an easier way than the > following: you could have a look at the following variables: CMAKE_STATIC_LIBRARY_PREFIX CMAKE_STATIC_LIBRARY_SUFFIX CMAKE_SHARED_LIBRARY_PREFIX CMAKE_SHARED_LIBRARY_SUF

Re: [CMake] Removing rpath paths

2018-10-29 Thread Alexander Neundorf
On 2018 M10 28, Sun 18:46:24 CET you wrote: > El 28/10/18 a las 18:32, Alexander Neundorf escribió: > > well, then you do have some RPATH/RUNPATH somewhere ;-). As you say > > probably in the libraries. > > ld.so.conf could also contains additional search directories, but I

Re: [CMake] Removing rpath paths

2018-10-28 Thread Alexander Neundorf
On 2018 M10 28, Sun 14:20:40 CET you wrote: > El 28/10/18 a las 13:59, Alexander Neundorf escribió: > > On 2018 M10 28, Sun 10:19:58 CET Gonzalo Garramuño wrote: > > ... > > > >> 3) Why does running 'readelf -d myexecutable | grep RPATH' returns > >

Re: [CMake] Removing rpath paths

2018-10-28 Thread Alexander Neundorf
On 2018 M10 28, Sun 10:19:58 CET Gonzalo Garramuño wrote: ... > 3) Why does running 'readelf -d myexecutable | grep RPATH' returns nothing only grep for "PATH", then you also get the newer RUNPATH entry. Alex -- Powered by www.kitware.com Please keep messages on-topic and check the CMake F

Re: [CMake] protobuf and imports relative to root (and --proto_path)

2018-09-25 Thread Alexander Neundorf
On 2018 M09 25, Tue 16:53:27 CEST David Jobet wrote: > > What I do have a problem is rerunning protoc automatically on proto-files > > which import proto files that have been modified. > > How do you handle this ? > > I just found out I don't. > Any idea on that one ? here are some suggestions: h

Re: [CMake] protobuf and imports relative to root (and --proto_path)

2018-08-23 Thread Alexander Neundorf
On 2018 M08 23, Thu 12:50:14 CEST David Jobet wrote: > Hello, > > I'm trying to port an existing project from premake to cmake. > I'm trying to avoid modifying the source files while doing so. > > Right now, we have several libraries (read in different directories) using > proto files with import

Re: [CMake] How to build fully correctly versioned shared object files with cmake

2018-08-06 Thread Alexander Neundorf
On 2018 M08 6, Mon 21:54:33 CEST Hendrik Sattler wrote: > Am 6. August 2018 20:27:23 MESZ schrieb Philip Van Hoof : > >Hello everyone, > > > >I noticed that it sometimes happens that I find a package for a shared > >object file(s) (or DLLs, on platforms like Windows) that have a build > >set up us

Re: [CMake] simple find_package example

2018-08-06 Thread Alexander Neundorf
On 2018 M08 2, Thu 10:01:39 CEST Randy Heiland wrote: > Hi, > > I'd like to figure out how to modify the simple "hello" demo ( > https://cmake.org/examples/) so that the Hello project is a library with an > accompanying FindHello.cmake and then the Demo project uses that > information and "find_pa

Re: [CMake] Using Different Computers for cmake and ctest

2018-08-06 Thread Alexander Neundorf
On 2018 M07 18, Wed 09:49:47 CEST Brian S wrote: > I currently use cmake/ctest to build and test my software. The software is > C++/CUDA. During the build step I don't need a GPU but in the test step I > do. I would like to build the code with cmake on a cluster with many CPUs > and then run the te

Re: [CMake] Eclipse CDT4 - Unix Makefiles / Ninja Generator

2018-07-08 Thread Alexander Neundorf
On 2018 M07 7, Sat 19:09:18 CEST Martin Weber wrote: > Hi all, > > FYI, according to this [1], those generators do no longer work with the new > core build introduced in CDT 9.5. > > Martin > > [1] http://dev.eclipse.org/mhonarc/lists/cdt-dev/msg33066.html do you know whether the new build syst

[CMake] How to handle dependencies of protobuf files ?

2018-04-26 Thread Alexander Neundorf
Hi, I stumbled upon a problem with protobuf files, I attached a testcase. There is a MyBase.proto, which is "imported" by Complex.proto. If MyBase.proto is modified, protoc is run again in MyBase.proto, but not on Complex.proto, although it should. You can have a look at the attached example. Th

Re: [CMake] How to build CMake so it works on an older Linux?

2018-04-05 Thread Alexander Neundorf
On 2018 M04 5, Thu 15:15:21 CEST Juan E. Sanchez wrote: > The example I just sent was for building in centos 6, because 5 is gone. not really gone, it's still in vault.centos.org :-) https://hub.docker.com/r/aneundorf/centos5-build-base/~/dockerfile/ Alex -- Powered by www.kitware.com Please

Re: [CMake] How to build CMake so it works on an older Linux?

2018-04-05 Thread Alexander Neundorf
On 2018 M04 5, Thu 12:50:04 CEST Ben Sferrazza wrote: > > Were you able to actually build the newer versions of Cmake that require > c++11 on Centos 5? I didn't try that. Alex -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/

Re: [CMake] How to build CMake so it works on an older Linux?

2018-04-05 Thread Alexander Neundorf
On 2018 M04 5, Thu 21:24:40 CEST Alexander Neundorf wrote: > On 2018 M04 5, Thu 16:15:17 CEST suzuki toshiya wrote: > > Dear Eric, > > > > # if anybody think "how C++11 environment should be prepared > > # on legacy GNU/Linux" is off-topic and should be discu

Re: [CMake] How to build CMake so it works on an older Linux?

2018-04-05 Thread Alexander Neundorf
On 2018 M04 5, Thu 16:15:17 CEST suzuki toshiya wrote: > Dear Eric, > > # if anybody think "how C++11 environment should be prepared > # on legacy GNU/Linux" is off-topic and should be discussed > # in off-list, please let me know. I will do so. > > Eric Wing wrote: > > Thanks for the responses.

Re: [CMake] cmake --find-package deprecated?

2018-04-03 Thread Alexander Neundorf
On 2018 M04 3, Tue 16:01:58 CEST jeandet wrote: > Hi all, > > Reading the documentation I can see: > https://cmake.org/cmake/help/v3.11/manual/cmake.1.html?highlight=find%2 > 0package#find-package-tool-mode id="-x-evo-selection-start-marker"> > " > Note > > This mode is not well-supported due to

Re: [CMake] [proposal] Support for modern CMake

2018-03-20 Thread Alexander Neundorf
On 2018 M03 20, Tue 21:14:30 CET Mateusz Loskot wrote: ... > Why I can not write: > > target_use(app Boost::system Boost::filesystem) > > or > > target_use_targets(app Boost::system Boost::filesystem) > > and, actually read and understand what I'm doing? > > (If you're now typing "why don't yo

Re: [CMake] [cmake] [RFC] rewriting FindMKL

2018-01-22 Thread Alexander Neundorf
On 2018 M01 22, Mon 15:16:50 CET Sik wrote: > Hello CMake users and devs, > > In openmeeg we are reviewing our MKL package finder to make it more > maintainable for ourselves and others who had adopted our solution. > Therefore I'm writing you requesting comments and feedback so that is > useful f

Re: [CMake] RPATH for pkg-config

2018-01-04 Thread Alexander Neundorf
On 2018 M01 4, Thu 10:06:26 CET Franck Houssen wrote: ... > ... > target_include_directories(main PUBLIC ${PETSc_INCLUDE_DIRS}) > foreach(lib ${PETSc_LDFLAGS}) > target_link_libraries(main PUBLIC ${lib}) > message("target_link_libraries - lib is ${lib}") > endforeach(lib) > > foreach(dir ${PET

Re: [CMake] coding style for modules

2018-01-04 Thread Alexander Neundorf
On 2018 M01 4, Thu 05:09:54 CET Dave Milter wrote: > Hello, > > If there is some libfoo that I want to use in my project, > and this libfoo has it's own CMakeLists.txt I have 3 options to deal > with such external dependency: > > a) Treat it like every other external dependency and write cmake co

Re: [CMake] RPATH for pkg-config

2018-01-03 Thread Alexander Neundorf
On 2018 M01 3, Wed 10:08:09 CET Franck Houssen wrote: > Hello, > > How to ask cmake to add a library path (coming from pc file) to rpath ? > > I checked this https://cmake.org/Wiki/CMake_RPATH_handling, but still not > working. Can somebody help ? > >> more main.cpp > > #include > > int main(i

Re: [CMake] rebuild externalprojects

2017-10-02 Thread Alexander Neundorf
On 2017 M09 21, Thu 07:18:46 CEST David Cole via CMake wrote: > By manually deleting (or touching) the stamp file associated with the > earliest step you need to re-run. > > ExternalProject is not for auto-detecting changes to stuff and > minimally re-running build steps. It's for static stuff tha

Re: [CMake] [cmake-developers] Debugging find_package() search behavior?

2017-10-02 Thread Alexander Neundorf
On 2017 M10 1, Sun 12:38:43 CEST David Cole via CMake wrote: > No, I was already promptly corrected by Brad, too. I was not > accounting for the fact that the other find_* calls used inside of > find modules also use CMAKE_PREFIX_PATH. I was thinking of its use to > find a project's config file fro

Re: [CMake] Advice on converting legacy project to modern CMake

2017-10-02 Thread Alexander Neundorf
On 2017 M08 10, Thu 17:15:00 CEST Robert Maynard wrote: > > Which leads to a question I have for the Kitware types here. What > > should I suggest to my Linux enterprise distribution users? Can they > simply download and use the latest Linux binary version of CMake that > is distributed by Kitwar

Re: [CMake] debugging CMAKE_PREFIX_PATH

2017-10-02 Thread Alexander Neundorf
On 2017 M09 13, Wed 09:50:48 CEST Patrick Welche wrote: > I think I am confused by the following: > > 1) CMAKE_PREFIX_PATH; > > Problematic (scribus) CMakeLists.txt: > >set(CMAKE_PREFIX_PATH "${QT_PREFIX}/lib/cmake") This looks wrong to me. In general CMAKE_PREFIX_PATH should contain only t

Re: [CMake] [cmake-developers] Debugging find_package() search behavior?

2017-10-01 Thread Alexander Neundorf
On 2017 M08 29, Tue 11:33:15 CEST David Cole via cmake-developers wrote: > That's correct: > > find modules do what they want, and most do not pay attention to > CMAKE_PREFIX_PATH. are you sure ? As long as NO_DEFAULT_PATH is not used in the find_*() calls, CMAKE_PREFIX_PATH is used automaticall

Re: [CMake] Best practice for modifying search path for find_package()

2017-10-01 Thread Alexander Neundorf
On 2017 M08 24, Thu 13:36:45 CEST Robert Dailey wrote: > So I have a "super build" CMake script that runs a series of > ExternalProject_Add() functions to execute builds of various third > party libraries and install them to a path relative to the parent > project's CMAKE_BINARY_DIR. > > Once the

Re: [CMake] Feature request: change how CMake chooses compiler when Ninja is used (Windows)

2017-05-30 Thread Alexander Neundorf
On 2017 M05 27, Sat 15:49:35 CEST biologi spm wrote: > Hi CMake developers, > > When both Mingw64 GCC and MSVC is available in PATH and run cmake > -GNinja, cmake always choose GCC. I have to manually remove GCC from > PATH or type -DCMAKE_IGNORE_PATH= which is very long. you can set the CC and C

Re: [CMake] cdash/ctest question

2017-03-10 Thread Alexander Neundorf
Hi John, On 2016 M01 19, Tue 07:55:27 CET Biddiscombe, John A. wrote: > Alex > > Thank you for this information. I shall test this out right away. so, did it work out ? Alex -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CM

Re: [CMake] Forcing linking compatability to old libc / libstdc++ (Linux)

2017-02-04 Thread Alexander Neundorf
On 2017 M02 3, Fri 20:32:58 CET you wrote: > FWIW, we've moved to CentOS 6 for the binaries we package and distribute > for ParaView. It's about the oldest widely deployed Linux distro that's > still actively supported (EL5 is EOL'd and most deployments have long since > moved to 6 or 7). Yes,

Re: [CMake] Forcing linking compatability to old libc / libstdc++ (Linux)

2017-02-03 Thread Alexander Neundorf
On 2017 M02 2, Thu 20:07:29 CET you wrote: > Hi Gonzalo, > > Using the dockcross/manylinux-x64 docker image should allow to build you > project out-of-the-box. > It is based on Centos5, include recent gcc, CMake, Git, etc ... > > See https://github.com/dockcross/dockcross > > In a nutshell, > >

Re: [CMake] Forcing linking compatability to old libc / libstdc++ (Linux)

2017-01-29 Thread Alexander Neundorf
On 2017 M01 26, Thu 18:23:05 CET Gonzalo Garramuño wrote: > I currently own an Ubuntu Xenial 14.04.1 LTS box in which I do all my > work.I distribute a binary image viewer. However, recently one of > my users tried to run the viewer on a CentOS 7 distro and found out that > that distro libc a

Re: [CMake] Function declaration scope

2016-11-29 Thread Alexander Neundorf
On 2016 M11 29, Tue 14:42:49 CET Robert Bielik wrote: > Hmm.. using v3.7 the answer is no, i.e. a function declared in a subfolder > will be available in parent scope. Seems a bit odd, doesn't it ? this has been discussed here just recently... Functions and macros are global. Once they are define

Re: [CMake] Adding Cmake version in online documentation

2016-11-11 Thread Alexander Neundorf
On Wednesday 09 November 2016 09:22:24 Nils Gladitz wrote: ... > You said you are not forcing your users to upgrade by setting a policy > to OLD. > Which implied that not setting the policy to OLD would force your users > to upgrade ... which it doesn't. > > >> In fact all that setting it to OLD d

Re: [CMake] Adding Cmake version in online documentation

2016-11-11 Thread Alexander Neundorf
On Wednesday 09 November 2016 00:47:39 Albrecht Schlosser wrote: > On 08.11.2016 23:01 Nils Gladitz wrote: > > On 08.11.2016 20:26, Albrecht Schlosser wrote: > >> I'm a developer of a public GUI library (FLTK). In this position you > >> don't know anything about the availability of CMake versions o

Re: [CMake] Splitting in multiple directories

2016-07-13 Thread Alexander Neundorf
On Tuesday 12 July 2016 09:00:43 portolan wrote: > Hello, > > I am new to Cmake and I have a pretty strange behaviour: I set my c+++ > project to work with a single CMakefile.txt, and now I am trying to have > a more proper version with a .txt for each subdirectory > > Pretty normal stuff, my sou

Re: [CMake] How to check if Eclipse CDT4 generated project is set up correctly?

2016-04-20 Thread Alexander Neundorf
On Monday, April 18, 2016 16:57:52 Nils Rathmann wrote: > Hi, > when I setup with the Eclipse CDT4 generator, as described here: > https://cmake.org/Wiki/Eclipse_CDT4_Generator4 > > my [Targets] folder contains virtual folders for CMakeRules, Header > Files, Object Files, Resources and Source File

Re: [CMake] Code::blocks: parallel build from IDE

2016-02-23 Thread Alexander Neundorf
On Sunday, January 17, 2016 14:01:59 Alexander Neundorf wrote: > On Sunday, January 17, 2016 13:45:34 Dimitri Kaparis wrote: > > On Sat, Jan 9, 2016 at 9:16 PM, Alexander Neundorf > > > > > wrote: > > > On Saturday, January 09, 2016 12:27:48 Dimitri

Re: [CMake] Incorporating cmake dir into configure.ac, but it depends on a autconf-managed in-tree library

2016-02-17 Thread Alexander Neundorf
On Thursday, February 11, 2016 13:11:29 Ron wrote: > Hi, > > I am working on a project that requires libevent and libevhtp. > The latter is cmake managed, my project and libevent are autoconf managed. > > (Note that libevhtp depends on libevent, both depend on openssl, which I > rely > on the sys

Re: [CMake] Finding Packages Installed in Non-Standard Locations

2016-02-03 Thread Alexander Neundorf
On Wednesday, February 03, 2016 13:08:42 Andrew Bell wrote: > If my package is installed to a non-standard location, my > Config.cmake file is currently also installed to the non-standard > location and can't be found by dependent projects. > > I see that there's export(PACKAGE ), but this creates

Re: [CMake] Code::blocks: parallel build from IDE

2016-01-17 Thread Alexander Neundorf
On Sunday, January 17, 2016 13:45:34 Dimitri Kaparis wrote: > On Sat, Jan 9, 2016 at 9:16 PM, Alexander Neundorf > wrote: > > On Saturday, January 09, 2016 12:27:48 Dimitri Kaparis wrote: > > > Greetings, > > > > > > I'm using the "Code

Re: [CMake] cdash/ctest question

2016-01-14 Thread Alexander Neundorf
On Thursday, January 14, 2016 21:51:23 Biddiscombe, John A. wrote: > Apologies for posting a cdash question question to the cmake list… > > CDash plots the run-time of tests, which is very useful indeed, but it would > be even more useful if one could output a performance related ‘time’ from a > t

Re: [CMake] Code::blocks: parallel build from IDE

2016-01-09 Thread Alexander Neundorf
On Saturday, January 09, 2016 12:27:48 Dimitri Kaparis wrote: > Greetings, > > I'm using the "CodeBlocks - Unix Makefiles" generator under linux to create > a build tree for my project consisting of multiple executables and > libraries. > From the command line, I could use make -jN switch from the

Re: [CMake] Creating relocatable export files

2016-01-07 Thread Alexander Neundorf
On Saturday, November 14, 2015 12:19:11 Nicholas Braden wrote: > Instead of using FOO_INCLUDE_DIR, I believe you should use > target_include_directories() with the INTERFACE or PUBLIC options - > this will export the include directories properly and they will be > used when someone target_link_libr

Re: [CMake] Making CMake *not* use -isystem at all

2015-12-07 Thread Alexander Neundorf
On Monday, December 07, 2015 15:39:40 Attila Krasznahorkay wrote: > Dear All, > > I'm still debugging the performance problems of our build. But now I bumped > into another surprising thing. > > Our "highest level" packages can depend on a *lot* of low level packages. > The one I'm testing now

Re: [CMake] Best way to handle application data path for local run vs. installation

2015-12-03 Thread Alexander Neundorf
On Thursday, December 03, 2015 09:27:29 Ruslan Baratov via CMake wrote: > On 03-Dec-15 04:34, Alexander Neundorf wrote: > > On Wednesday, December 02, 2015 12:27:42 Ruslan Baratov wrote: > > If RPATH was _designed_ to be patchable, tools could just do it, > > instead o

Re: [CMake] Best way to handle application data path for local run vs. installation

2015-12-02 Thread Alexander Neundorf
On Wednesday, December 02, 2015 12:27:42 Ruslan Baratov wrote: > On 02-Dec-15 05:13, Alexander Neundorf wrote: ... > > well, the RPATH entry was not designed to be patched, > > RPATH designed to be patched. And since it's a third time I'm making > this statement ple

Re: [CMake] Best way to handle application data path for local run vs. installation

2015-12-01 Thread Alexander Neundorf
On Tuesday, December 01, 2015 07:17:35 Ruslan Baratov wrote: > On 01-Dec-15 03:51, Alexander Neundorf wrote: > > On Monday, November 30, 2015 16:13:03 Ruslan Baratov via CMake wrote: > > > On 30-Nov-15 09:10, Dmitry Marakasov wrote: > > > > Hi! > > > > .

Re: [CMake] Best way to handle application data path for local run vs. installation

2015-11-30 Thread Alexander Neundorf
On Monday, November 30, 2015 16:13:03 Ruslan Baratov via CMake wrote: > On 30-Nov-15 09:10, Dmitry Marakasov wrote: > > Hi! > > ... > > The best solution would be for cmake to fix path in executable file > > right after installation, something similar to what cmake does with > > rpaths. > > I do

Re: [CMake] Benchmarking with CMake

2015-11-15 Thread Alexander Neundorf
On Friday, November 13, 2015 14:41:35 Nagy-Egri Máté Ferenc via CMake wrote: > Thank you all for your resonses, > > My use case is that I have a set of executables that function as unit tests. > Currently I use the return value of the .exe as a means of indicating > success, though I know there

Re: [CMake] Benchmarking with CMake

2015-11-12 Thread Alexander Neundorf
On Monday, November 09, 2015 23:21:58 Nagy-Egri Máté Ferenc via CMake wrote: > Hi! > > Can anyone tell me if CMake (or CTest) can be customized in a way to produce > decent benchmark output? An .xlsx perhaps, or something GnuPlot friendly? I > have not found any examples of CTest being (ab)used

Re: [CMake] Is the situation with CMake + Eclipse ever going to get any better?

2015-09-27 Thread Alexander Neundorf
Hi, On Sunday, September 27, 2015 13:29:15 Talin wrote: > I've been using CMake and Eclipse for a bunch of different projects over > the last several years. Although many aspects of both CMake and Eclipse > have improved over the years, using them together still has a lot of > problems. > > From

Re: [CMake] linking: absolute path vs -l

2015-09-03 Thread Alexander Neundorf
On Wednesday, September 02, 2015 22:12:39 Nico Schlömer wrote: > Indeed, > ``` > get_target_property(out ${netCDF_LIBRARIES} LOCATION) > message(${out}) > ``` > gives > ``` > /usr/lib/x86_64-linux-gnu/libnetcdf.so.7.3.0 > ``` > This value appears to be set in the CMake export file > ``` > /usr/lib/

Re: [CMake] linking: absolute path vs -l

2015-09-02 Thread Alexander Neundorf
On Wednesday, September 02, 2015 20:28:35 Nico Schlömer wrote: > Curiously, > ``` > message(${ZLIB_LIBRARIES}) > message(${netCDF_LIBRARIES}) > ``` > yields > ``` > /usr/lib/x86_64-linux-gnu/libz.so > netcdf > ``` > Hm, I would have expected it the other way around. :) maybe "netcdf" is the name

Re: [CMake] linking: absolute path vs -l

2015-09-02 Thread Alexander Neundorf
On Wednesday, September 02, 2015 08:22:08 Nico Schlömer wrote: > > it uses -l if the full path is not know or if the full path is one of the > > system > library dirs > > Hm, that sound a little weird. Using `-l` appears to delegate the library > finding to the linker although CMake has already do

Re: [CMake] linking: absolute path vs -l

2015-08-31 Thread Alexander Neundorf
On Friday, August 28, 2015 08:23:47 Nico Schlömer wrote: > Hi everyone, > > I'm curious about when CMake decides to link a library by its absolute path > and when it links using the `-l*` syntax. I came across this for the very > simple test problem > ``` > cmake_minimum_required(VERSION 3.0) > >

Re: [CMake] Crawling documentation to find named argument keywords

2015-08-31 Thread Alexander Neundorf
On Monday, August 17, 2015 09:15:18 Michael Jackson wrote: > I thought there used to be a DocBook version of the documentation? At one > point I had an XML parser that used that as input to process the > documentation in the same way. the way the documentation is generated has changed with version

Re: [CMake] [cmake-developers] CMake IR

2015-07-30 Thread Alexander Neundorf
On Wednesday, July 29, 2015 07:49:07 Nagy-Egri Máté Ferenc via cmake- developers wrote: ... > I believe CMake is an invaluable tool, but it could do far better. 0/10 > CMake users I’ve met say they are “happy” CMake users. The learning curve > is steep, and the skills gained are not reusable. CMake

Re: [CMake] linking static libs into shared libs on Linux

2015-07-07 Thread Alexander Neundorf
On Tuesday, July 07, 2015 14:36:25 Steve Borho wrote: > Hello, I am the technical lead for x265 (HEVC encoder) and we have used > cmake successfully since the beginning of the project. There are a few > rough edges that we've had to work around (uninstall rules, yasm support > in MSVC, etc) but in

Re: [CMake] warn if features used that require >cmake-x.y

2015-07-03 Thread Alexander Neundorf
On Thursday, July 02, 2015 04:13:40 Stuermer, Michael SP/HZA-ZSEP wrote: > Have a look at cmake_minimum_required() and cmake_policy(). I think with > these both it should be possible to verify you are using a cmake version > that provides all features which are required by your project. no, what

Re: [CMake] warn if features used that require >cmake-x.y

2015-07-03 Thread Alexander Neundorf
On Friday, July 03, 2015 09:33:42 Glenn Coombs wrote: > I don't think policies are sufficient. I just tried using the new > target_sources command that was introduced in CMake 3.1.0 in a > CMakeLists.txt file that specified cmake_minimum_required(VERSION 3.0) and > it didn't warn that the CMakeLis

Re: [CMake] Automatic management of Eclipse projects

2015-06-22 Thread Alexander Neundorf
On Monday, June 22, 2015 18:02:01 Cedric Doucet wrote: > Hello, > > I am testing the possibility of generating Eclipse projects with CMake. > I use the following command line: > cmake -G"Eclipse CDT4 - Unix Makefiles" -D CMAKE_BUILD_TYPE=Debug ../src > It works fine. > > However, I would like to

Re: [CMake] cross compiling with sdcc

2015-06-15 Thread Alexander Neundorf
On Saturday, June 13, 2015 23:26:59 tors...@robitzki.de wrote: > Hi Alex, > > Am 13.06.2015 um 22:18 schrieb Alexander Neundorf : > > On Friday, May 29, 2015 11:14:06 tors...@robitzki.de wrote: > … > > >> I saw that there is a file Platform/Generic-SDCC-C.cmake, whi

Re: [CMake] determining which system headerfile provides a given function

2015-06-15 Thread Alexander Neundorf
On Saturday, June 13, 2015 23:17:37 René J.V. Bertin wrote: > On Saturday June 13 2015 22:26:12 Alexander Neundorf wrote: > > did you try check_symbol_exists() and the other similar functions ? > > Yes, but none that I could find give any information beyond whether the > symbol

Re: [CMake] How does :: actually works?

2015-06-13 Thread Alexander Neundorf
On Thursday, June 11, 2015 19:18:55 Klaim - Joël Lamotte wrote: > On 11 June 2015 at 15:22, Johannes Zarl-Zierl > > wrote: > > Hi, > > > > > I tried several times now to find documentation about how to define > > > and use target names which seem to have namespaces, like Qt ones. > > > > > > Fo

Re: [CMake] determining which system headerfile provides a given function

2015-06-13 Thread Alexander Neundorf
On Wednesday, June 10, 2015 01:32:21 René J. V. Bertin wrote: > Ok, let me rephrase the question to see what other kind of constructive > answers that'll lead to: > > how does one check which header file provides the prototype for a function > from the system libraries? Function in question: reall

Re: [CMake] How to choose a compiler different from default?

2015-06-13 Thread Alexander Neundorf
On Sunday, June 07, 2015 17:39:39 Peng Yu wrote: > Hi, I following the following steps to compile gtest. > > https://code.google.com/p/tonatiuh/wiki/GoogleTest > > But the following output shows that it uses the default compiler on > Mac OS X. I want to use some other compiler. Does anybody know

Re: [CMake] cross compiling with sdcc

2015-06-13 Thread Alexander Neundorf
On Friday, May 29, 2015 11:14:06 tors...@robitzki.de wrote: > Hello, > I was looking for some resources on how to configure cmake to use the small > device c compiler (sdcc). I tried a little bit and found that cmake assumed > that the object file extension would be .obj. But sdcc uses .rel for obj

Re: [CMake] What is the proper way to export targets that will be split into separate binary packages?

2015-04-25 Thread Alexander Neundorf
On Friday, April 24, 2015 12:33:50 Alan W. Irwin wrote: > The Fedora packager of PLplot is having trouble splitting installed > results into separate binary packages because of the way that PLplot > currently exports its targets. What steps do we have to do to make > life easier for him? > > Here

Re: [CMake] Running custom executable

2015-04-08 Thread Alexander Neundorf
On Tuesday, April 07, 2015 15:24:18 Daniel Dilts wrote: > Looking at the way these things work, it seems to me that the ideal > solution to my situation, if it is possible, is to do a > add_custom_command() for each source file, and then do a > add_custom_target() that has all of the custom command

Re: [CMake] Running custom executable

2015-04-07 Thread Alexander Neundorf
On Tuesday, April 07, 2015 13:22:30 you wrote: > > > > I have a custom executable that does some codegen to produce an > > > > > >> > > enumeration and a couple of tables. I need this to be run against > >> > >> each > >> > >> > > source file before actual compilation. It needs include directo

Re: [CMake] Running custom executable

2015-04-07 Thread Alexander Neundorf
On Monday, April 06, 2015 21:19:57 Klaim - Joël Lamotte wrote: > On Mon, Apr 6, 2015 at 8:47 PM, Daniel Dilts wrote: > > I have a custom executable that does some codegen to produce an > > enumeration and a couple of tables. I need this to be run against each > > source file before actual compila

Re: [CMake] CMP0026 - Disallow use of the LOCATION target property

2015-02-24 Thread Alexander Neundorf
On Tuesday, February 24, 2015 20:14:23 Stephen Kelly wrote: > Jifeng ZHANG wrote: > > Any idea when CMake 4.0 is planned to release? So we can get a general > > idea when the old behavior will stop working. > > What will you do when it is released and the LOCATION property does stop > working for

Re: [CMake] CMake and Eclipse Luna

2015-02-17 Thread Alexander Neundorf
On Tuesday, February 17, 2015 10:28:26 Robert Ramey wrote: > I'm using CMake 3.02 through CMake GUI. > > I have a CMake project which I want to build using Eclipse Luna (the most > recent eclipse). But the GUI doesn't present me with that option. I tried > to use the latest one (Helios) but it s

Re: [CMake] [ANNOUNCE] CMake 3.2.0-rc1 now ready for testing!

2015-02-13 Thread Alexander Neundorf
On Friday, February 13, 2015 15:12:33 Robert Maynard wrote: > I am proud to announce that CMake 3.2 has entered the release candidate > stage. the new format of the release notes is really nice :-) Alex -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: h

Re: [CMake] lib/cmake vs share/cmake/Modules

2015-02-10 Thread Alexander Neundorf
On Tuesday, February 10, 2015 03:43:33 44ghnqv...@snkmail.com wrote: > Alexander Neundorf wrote at 21:34 +0100 on Feb 9, 2015: > > On Monday, February 09, 2015 18:23:41 44ghnqv...@snkmail.com wrote: > > > How does one who is making a package which installs .cmake files >

Re: [CMake] lib/cmake vs share/cmake/Modules

2015-02-09 Thread Alexander Neundorf
On Monday, February 09, 2015 18:23:41 44ghnqv...@snkmail.com wrote: > How does one who is making a package which installs .cmake files decide > whether to put them in .../share/cmake/Modules or .../lib/cmake? Where are > the docs about that? I've seen examples of 3rd party packages doing both > (

Re: [CMake] Announcing a (potential) new CMake project!

2015-02-03 Thread Alexander Neundorf
On Monday, February 02, 2015 19:23:41 Jeremy Moles wrote: > Hello everyone! My name is Jeremy, and I've been working with AlphaPixel > (http://www.alphapixel.com) for the last 3 years. Similar to other > companies of the type, Chris (our CEO), gives the employees the > opportunity to frequently wor

Re: [CMake] target_link_libraries replacing fully-qualified library with -l

2015-01-29 Thread Alexander Neundorf
On Thursday, January 29, 2015 08:39:33 Chris Green wrote: > On 1/29/15 7:41 AM, Brad King wrote: > > On 01/28/2015 03:12 PM, Chris Green wrote: > >> target_link_libraries( /X/Y/libtbb.so) > >> > >> results in link.txt files containing -ltbb. > > > > This happens when the library is in an implicit

Re: [CMake] CMake Eclipse & Resource Filters

2015-01-28 Thread Alexander Neundorf
On Wednesday, January 28, 2015 12:56:24 Robert Dailey wrote: > Hello, > > I generate my project using Eclipse CDT4 - Ninja. I have a > subdirectory called "Third Party" under my source directory that > contains boost, QT, and a number of other very large libraries. I > notice that the C++ indexer

Re: [CMake] target_link_libraries replacing fully-qualified library with -l

2015-01-28 Thread Alexander Neundorf
On Wednesday, January 28, 2015 14:12:03 Chris Green wrote: > Hi, > > I've been trying to run down a problem with our cmake-based build system > that appears to be a result of a target_link_libraries(...) invocation > taking a fully qualified shared library location and replacing it with > -l. Sinc

Re: [CMake] KDevelop Projects

2014-12-13 Thread Alexander Neundorf
On Saturday, December 13, 2014 00:08:44 ambreen haleem wrote: > In my main repository where my project reside, I created a sub-directory > called build. When I do cmake -G "KDevelop3", I do get a kdevelop project > in the build but it has no src files and most of the files in there are > cmake rela

Re: [CMake] Generate Eclipse project with support for c++ 11

2014-12-07 Thread Alexander Neundorf
On Friday, December 05, 2014 09:58:17 Luca Gherardi wrote: > Hi all, > > I’m writing a CMake file for a project that should be compiled both in > Ubuntu and OS X. I want to use eclipse as IDE, gcc and C++ 11. > > I read different threads that suggest how to enable C++ 11 in eclipse. > According t

Re: [CMake] Fwd: Error in compiling OKULAR using CMAKE

2014-10-24 Thread Alexander Neundorf
On Friday, October 24, 2014 11:49:55 Sahil Sehgal wrote: > Hello, > > I was trying to build Okular (KDE application) in IDE (QT-creator and > Kdevelop both). I did the following steps: > 1.) clonned the source code of Okular > 2.) loaded the source code in IDE > 3.) click on the build command. >

Re: [CMake] CMake Error: install(EXPORT "A" ...) includes target "b" which requires target "c" that is not in this export set, but x times in others.

2014-10-08 Thread Alexander Neundorf
On Wednesday, October 08, 2014 18:40:53 Nico Schlömer wrote: > Hi all, > > in on CMake project of mine, all seems to configure fine until the > very end where I'm getting error messages like > ``` > CMake Error: install(EXPORT "A" ...) includes target "b" which > requires target "c" that is not in

Re: [CMake] Cmake(3.0.2) Eclipse project indexing issues under linux

2014-10-06 Thread Alexander Neundorf
Hi, thanks for your detailled findings. Can you please create a ticket in the bug tracker with this, so it doesn't get lost ? http://public.kitware.com/Bug Thanks Alex On Monday, October 06, 2014 14:30:06 Tushar Soni wrote: > Hi, > > After generating Eclipse projects and importing them, Eclips

Re: [CMake] TARGET_LINK_LIBRARIES with full path libraries

2014-09-17 Thread Alexander Neundorf
On Wednesday, September 17, 2014 14:50:40 Volker Pilipp wrote: ... > I suppose it is the line > LIBRARY_PATH=/opt/XXX/lib/gcc/x86_64-unknown-linux-gnu/4.8.2/:/opt/XXX/lib/g > cc/x86_64-unknown-linux-gnu/4.8.2/../../../../lib64/:/lib/../lib64/:/usr/lib > /../lib64/:/opt/XXX/lib/gcc/x86_64-unknown-li

Re: [CMake] install(EXPORT ...) includes target "B" which requires target "A" that is not in the export set

2014-09-11 Thread Alexander Neundorf
On Thursday, September 11, 2014 23:51:21 Nico Schlömer wrote: > Hi all, > > One of my projects contains two libraries libA and libB, where libB > depends on libA, and both are exporting their configuration through > the usual `INSTALL(EXPORT ...)` mechanisms. > I'm getting errors of the type > ```

Re: [CMake] Platform information override file is ignored for ASM language

2014-08-25 Thread Alexander Neundorf
On Monday, August 25, 2014 14:36:21 Никонов Михаил Николаевич wrote: > Hello, > > In a bare-metal embedded project, I need to initialize compiler flags > to custom values while toolchains are initialized; for that, I'm using > override files to set _INIT variables. From what I've encountered, it >

Re: [CMake] How to deal with incompatible changes in interface of target_link_libraries()?

2014-08-20 Thread Alexander Neundorf
On Tuesday, August 12, 2014 09:06:13 Brad King wrote: ... > FYI, the only intended use case for setting a policy to OLD is to > quiet warnings in a maintenance branch of an existing release. > Some day support for OLD behavior of some policies may be dropped, > so all project development moving for

Re: [CMake] Variable shadowing between scope, cache and command line argument

2014-08-20 Thread Alexander Neundorf
On Wednesday, July 30, 2014 14:59:46 Ghyslain Leclerc wrote: > Hello, > > First post here. Sorry if its too long. Simply trying to be as clear as I > can be. > > I am trying to make sense of the various ways to set a variable and how one > can shadow the other. Long story short, I am trying to

Re: [CMake] How to get rid of AUTOMOC: Checking ... messages

2014-08-16 Thread Alexander Neundorf
On Thursday, July 24, 2014 08:38:08 Dominique Ledit wrote: > Hi > > I currently use 2.8.12.2 CMake version and Qt 4.7.3 and set in my top-level > CMakeLists.txt the CMAKE_AUTOMOC to true Set (CMAKE_AUTOMOC on) > As a result, in the build log there are a lot of messages like: > > AUTOMOC: Checking

Re: [CMake] how to add new source files in already build cmake project from inside eclipse cdt?

2014-07-22 Thread Alexander Neundorf
On Tuesday, July 22, 2014 04:03:44 Payal Prajapati wrote: > Hello, > Thank you for your reply. > Is there any way to build only my added file? because it takes much > time to rebuild the whole project even for a minor change in source > file? when you simply build (all, make all), only those file

Re: [CMake] how to add new source files in already build cmake project from inside eclipse cdt?

2014-07-21 Thread Alexander Neundorf
On Monday, July 21, 2014 08:40:11 Payal Prajapati wrote: > hello All, > > Two things to say: > > 1)I read all conversion regarding this topic..but can any one explain me > the whole procedure? > 2)I am working on orfeo toolbox which i imported in eclipse.It works fine > upto make target->build s

Re: [CMake] How to build 'install' target or orther custom target in eclipse?

2014-05-25 Thread Alexander Neundorf
On Sunday, May 25, 2014 11:43:18 you wrote: > On Sun, May 25, 2014 at 9:18 AM, Alexander Neundorf > wrote: > > > > On Saturday, May 24, 2014 18:35:06 J Decker wrote: > > > So I've had to pick up eclipse to try and learn it; figured maybe if I > > &g

  1   2   3   4   5   6   7   8   9   10   >