Re: [CMake] Adding an individual define to each source file of a library

2018-08-23 Thread Eric Noulard
Le jeu. 23 août 2018 à 13:02, George PF a écrit : > Hello, > > following "modern cmake" conventions I want to create a library where > every single file is compiled with an individual define (-D_fileX_, > required for a macro which integrates code into every translation unit). > > So following

Re: [CMake] Problem with creating shared library

2018-08-21 Thread Eric Noulard
Le lun. 20 août 2018 à 19:05, Damir Porobic a écrit : > Hi Eric, > > > yes, this is the project. I have pushed my current state to this branch > https://github.com/DamirPorobic/kImageAnnotator/tree/sharedLibTestBranch > > I've tried also without the generate_export_headers (cleaned everything up

Re: [CMake] Problem with creating shared library

2018-08-19 Thread Eric Noulard
Hi Damir, May be the issue has nothing to do with the way you build the exported <>Config.cmake files. Since may be some nasty detail slipped in, could you tell us if the project is public. It looks like this one: https://github.com/DamirPorobic/kImageAnnotator may be you can push a branch that

[CMake] Fwd: Problem with creating shared library

2018-08-15 Thread Eric Noulard
-- Forwarded message - From: Eric Noulard Date: mer. 15 août 2018 à 17:13 Subject: Re: [CMake] Problem with creating shared library To: May be check the list of symbol in the lib. KImageAnnotator::KImageAnnotator(QPixmap const&) may really not be there (only declared in

Re: [CMake] Problem with creating shared library

2018-08-15 Thread Eric Noulard
Le mer. 15 août 2018 à 10:32, Damir Porobic a écrit : > Hi Folks, > > > I'm trying to write a shared library and run into an issue where I can't > find any clues to where the problem is. > > I have a project with following structure: > > > src/ > > dir1/ > > file1.h > >

Re: [CMake] Issues trying to use the Anaconda compiler tools with CMake

2018-08-15 Thread Eric Noulard
Le mer. 15 août 2018 à 10:57, Ray Donnelly a écrit : > Docker is unnecessary overhead here and irrelevant to the question of > which compilers to use when building conda packages (use ours or risk > binary incompatibility with the rest of the ecosystems, please do not > attempt to use e.g.

Re: [CMake] Issues trying to use the Anaconda compiler tools with CMake

2018-08-15 Thread Eric Noulard
Le mar. 14 août 2018 à 20:38, Sebastián Mancilla a écrit : > I wanted to try Conda for normal day-to-day C++ development, while having > all the dependencies isolated from other projects and the base system. > > - Change the sources > - Build > - Run the tests > - Repeat > Hi Sebastian, Just

Re: [CMake] CMake and Visual Studio Code under linux

2018-08-09 Thread Eric Noulard
Le jeu. 9 août 2018 à 09:09, Roman Wüger a écrit : > Hello, > > how can I configure my Project to run it with the Visual Studio Code under > Linux? I did not find a useful generator. > AFAIK there is no VSCode generator, however you can install VSCode CMake Tools extension which begins to

Re: [CMake] issue with CPack: RPM package was not generated!

2018-07-31 Thread Eric Noulard
Hi Miroslav, Do you need something very specific that you need a custom spec file? If this is not the case you should try to let CPackRPM generate the spec file for you. This "USER spec file" feature was designed (quite a long time ago) when CPackRPM was lacking some features that came in after

Re: [CMake] Beginners Guide to Cmake and Modern Cmake

2018-07-28 Thread Eric Noulard
Le sam. 28 juil. 2018 à 01:01, spacey...@outlook.com a écrit : > Hey Andreas, > > thanks for your comments. Yes I too have exhausted the resources you have > mentioned here. The concepts make sense and I see the intended point but > for a beginner its hard to grasp on how to implement and given

Re: [CMake] ENOEXEC exit code from ctest on FreeBSD

2018-07-09 Thread Eric Noulard
Le lun. 9 juil. 2018 à 07:14, Anoop C S a écrit : > Hi all, > > While running tests from a wip branch[1] for socket_wrapper project I > noticed the following output > on FreeBSD: > > Your issue seems more related with the "socker wrapper" project than with CMake/CTest but... > Following that I

Re: [CMake] cpp macro

2018-06-04 Thread Eric Noulard
Le lun. 4 juin 2018 à 09:59, Stéphane Ancelot a écrit : > hi > > is there a mactro for cpp ? > You mean a CMake variable which would contain the path to C preprocessor binary? I don't think so, at list no xxx__xxx variable seems to exists for that. Did you check "cmake --help-variable-list" ?

Re: [cmake-developers] How to handle dependencies of protobuf files ?

2018-05-30 Thread Eric Noulard
Le mer. 30 mai 2018 à 15:12, Brad King a écrit : > On 05/29/2018 04:00 PM, Alexander Neundorf wrote: > >> In order to handle implicit dependencies like that implied by > >> > >> import "MyBase.proto"; > >> > >> then they would somehow need to be extracted from source content. > > > > Would

Re: [CMake] [CPack] Avoiding packaging (some) dependencies

2018-05-16 Thread Eric Noulard
2018-05-16 9:33 GMT+02:00 Drago Trusk : > Hi everyone, > > I have particular problem which I'm unable to solve. > > Lets say there are following components: > - Main: library/executable > - Ignorable: Main requires it to build, but not for packaging > > Main simply

Re: [CMake] Recommandations for public custom macro/functions installation

2018-04-17 Thread Eric Noulard
2018-04-17 11:58 GMT+02:00 David Demelier : > Hello, > > In my application I have some custom functions that help the process of > creating executable, libraries, plugins and such. > > They don't do magic things but they mostly build, provide installation > to specific place

Re: [CMake] should zlib be searched in CMAKE_PREFIX_PATH or am I confused?

2018-03-23 Thread Eric Noulard
2018-03-23 11:44 GMT+01:00 Mario Emmenlauer <ma...@emmenlauer.de>: > > Hi Eric, > > On 23.03.2018 10:58, Eric Noulard wrote: > > 2018-03-23 10:21 GMT+01:00 Mario Emmenlauer <ma...@emmenlauer.de > <mailto:ma...@emmenlauer.de>>: > > > > >

Re: [CMake] should zlib be searched in CMAKE_PREFIX_PATH or am I confused?

2018-03-23 Thread Eric Noulard
2018-03-23 10:21 GMT+01:00 Mario Emmenlauer : > > Thanks PF, I think this makes more sense now! I was assuming that > cmake always prefers CMAKE_PREFIX_PATH over builtin paths. But as you > clarified, that only applies to libraries that provide find_package > support. > >

Re: [CMake] Make ctest spit out xml file (without dashboard)

2018-03-19 Thread Eric Noulard
2018-03-19 13:14 GMT+01:00 Craig Scott <craig.sc...@crascit.com>: > > > On Mon, Mar 19, 2018 at 10:39 PM, Eric Noulard <eric.noul...@gmail.com> > wrote: > >> Hi there, >> >> Is it possible to make ctest spit out its result in an xml formatted fi

[CMake] Make ctest spit out xml file (without dashboard)

2018-03-19 Thread Eric Noulard
Hi there, Is it possible to make ctest spit out its result in an xml formatted file without sending it to some dashboard. ? I only need something xml-parsable ctest output locally. -- Eric -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at:

Re: [CMake] Link-Time Dependency Injection for Unit Tests

2018-03-15 Thread Eric Noulard
2018-03-15 14:52 GMT+01:00 Joshua Baergen : > Thanks Eric! That worked perfectly. > > I had looked at generator expressions yesterday, but didn't understand at > which point during makefile generation they were evaluated, and had falsely > assumed that they were evaluated

Re: [CMake] Link-Time Dependency Injection for Unit Tests

2018-03-15 Thread Eric Noulard
Hi Joshua, 2018-03-15 4:18 GMT+01:00 Joshua Baergen : > Hello, > > I'm attempting to implement link-time dependency injection. In brief, what > this means is that, for a library A that depends on B, we would normally > have: > > target_link_libraries(A B) > > However,

Re: [CMake] Return an Error Code (or something) from a CMake Script.

2018-02-26 Thread Eric Noulard
cmake -P usually do the right thing. Here you ignore the error because you only message (STATUS ...) Try adding message (ERROR ...) or message (FATAL_ERROR ...) when execute_process producer error and tout custom command should faim. Le 26 févr. 2018 20:19, "Michael Jackson"

Re: [CMake] CMake tar.gz package does not include all installed files

2018-02-08 Thread Eric Noulard
Hi Nicolas, AFAIK CPack Archive generators (ZIP, TGZ, etc...) cannot properly handle ABSOLUTE_INSTALL path. The 3 install statements: install(FILES glewlwyd.service DESTINATION ${CMAKE_INSTALL_PREFIX}/lib/systemd/system COMPONENT config) install(FILES glewlwyd-init DESTINATION

Re: [CMake] How to add files to Visual Studio 'Utility' project

2018-02-02 Thread Eric Noulard
There is some history on that: https://gitlab.kitware.com/cmake/cmake/issues/7835 linked to older https://itk.org/Bug/view.php?id=7835 May be this is a plain feature request that should be properly written based on history and current usage. Typically I think that anyone would want to add any

Re: [CMake] (no subject)

2018-01-31 Thread Eric Noulard
2018-01-31 18:29 GMT+01:00 kartikay gupta : > Hi > > I want to install cmake 3.10 to my institute high performace computing > without root access, in local directory. I am able to install it, but still > when I call the command 'cmake .. -DUSE_CUDA=ON' , it asks to

Re: [cmake-developers] Undocumented command line flags (-H, -B) why?

2018-01-16 Thread Eric Noulard
Thank you very much for the explanation. 2018-01-16 14:46 GMT+01:00 Ben Boeckel <ben.boec...@kitware.com>: > On Tue, Jan 16, 2018 at 13:10:07 +0100, Eric Noulard wrote: > > I came accross -H and -B undocumented command line flags for cmake: > > https://stackoverflow.com/que

[cmake-developers] Undocumented command line flags (-H, -B) why?

2018-01-16 Thread Eric Noulard
Hi there, I came accross -H and -B undocumented command line flags for cmake: https://stackoverflow.com/questions/24460486/cmake-build-type-not-being-used-in-cmakelists-txt/24470998#24470998 Is there any reason to keep those undocumented? -- Eric -- Powered by www.kitware.com Please keep

Re: [CMake] Do any CMake back ends have support for parallel builds that efficiently use clusters?

2018-01-12 Thread Eric Noulard
2018-01-12 11:14 GMT+01:00 Eric Noulard <eric.noul...@gmail.com>: > > > 2018-01-12 10:58 GMT+01:00 Alan W. Irwin <ir...@beluga.phys.uvic.ca>: > >> I am looking into the practicality of using clusters containing ~5 >> cheap ARM 8-core computers (such a

Re: [CMake] Do any CMake back ends have support for parallel builds that efficiently use clusters?

2018-01-12 Thread Eric Noulard
2018-01-12 10:58 GMT+01:00 Alan W. Irwin : > I am looking into the practicality of using clusters containing ~5 > cheap ARM 8-core computers (such as the Banana Pi M3) to rapidly build > and test software (since even with ccache I am currently spending a > lot of my

[CMake] Is a there a mean to check that all target are installed?

2018-01-10 Thread Eric Noulard
Is there a way to programmatically check whether all (or some) CMake targets are installed? I want to be able to check that all defined targets of a particular project (at least libraries or executable) are installed. I can recursively retrieve all targets using

Re: [CMake] CMake: using dlopen

2018-01-08 Thread Eric Noulard
ood thing but not so easy when trying to > read/understand all of it (personal opinion). To me, the doc misses simple > illustrative examples like Rainer's one (here again, personal opinion). > > > -- > > *De: *"Eric Noulard" <eric.noul...

Re: [CMake] CMake: using dlopen

2018-01-08 Thread Eric Noulard
Explanations on PRIVATE, PUBLIC, INTERFACE has already been discussed in those ML threads: https://cmake.org/pipermail/cmake/2017-April/065340.html https://cmake.org/pipermail/cmake/2016-May/063400.html I guess we need some doc update. I did promess contribution and I didn't do it. I'll try

Re: [cmake-developers] Optionally disabling static lib dependencies with COMPILE_DEPENDS

2018-01-04 Thread Eric Noulard
2018-01-04 10:48 GMT+01:00 Craig Scott : > > > On Thu, Jan 4, 2018 at 8:27 AM, John Wordsworth > wrote: > >> I have recently been reviewing ways to improve build times for our >> project, which is comprised of a number of static libraries. I

Re: [CMake] INTERFACE library and path to source.

2017-12-12 Thread Eric Noulard
epend.internal`: > > > main/CMakeFiles/main.dir/main.c.o > > ../lib/lib.h > > /home/l2y/<...>/main/main.c > So, all elements in `target_include_directories()` resolve to full > paths, as well as `target_sources()`, while `target_sources(INTERFACE)` > stay relativ

Re: [CMake] INTERFACE library and path to source.

2017-12-11 Thread Eric Noulard
2017-12-09 1:37 GMT+01:00 Oleksii Vilchanskyi : > Hello Eric, > > > Why should I do that? > > Is this the expected behavior / way to create header only library? > > Yes, this is the expected behaviour. CMake interprets a relative path to > the file according to the

[CMake] INTERFACE library and path to source.

2017-12-08 Thread Eric Noulard
Hi there, I encounter a weird issue with header-only library. Somewhere in my source tree I have an header library which consist in a bunch of headers: The concerned CMakeLists.txt looks like this: add_library(MyHeaderLIB INTERFACE) target_include_directories(MyHeaderLIB INTERFACE

Re: [CMake] check_cxx_compiler_flag usage

2017-12-07 Thread Eric Noulard
2017-12-07 9:35 GMT+01:00 Clément Gregoire : > That's probably an issue with linking because it doesn't know it has to > link asan. > Either way, settings asan flags is the job of the user, not the > cmakelists.txt. > Such things should be kept in tool chain or config files

Re: [CMake] check_cxx_compiler_flag usage

2017-12-07 Thread Eric Noulard
Not really answering the question but did you try to use an existing CMake module for handling sanitizers config? I find this one https://github.com/arsenm/sanitizers-cmake very effective, with modern CMake target oriented features. 2017-12-07 9:24 GMT+01:00 Damien R

Re: [CMake] Antwort: Antwort: Re:Antwort: Re: Toolchain with non-gcc argument format

2017-11-22 Thread Eric Noulard
Hi Olivier, Putting the list back. You may try developer list as well. 2017-11-22 9:02 GMT+01:00 : > Hi, > > Is there really no way to override this var with a toolchain file? that > seems somehow strange to me, since CMAKE is so configurable that i can't > change

Re: [CMake] Ctest and AND operator on labels

2017-09-04 Thread Eric Noulard
2017-09-04 15:38 GMT+02:00 : > Hello, > > I would like to launch tests with 2 specific labels: LEVEL1 and NEW > To launch tests with several labels and the OR logical operator, you can > do that: > cmake -L "(LEVEL1|NEW)" > > But how can you perform the AND operator ? >

[cmake-developers] Dependency graph in server mode?

2017-08-25 Thread Eric Noulard
Hi there, Is it possible to get the dependency graph one can get with the --graphviz option when running in server mode. >From my understanding the current "codeModel" message does not contain such information. Am I right? If I wanted to add the dependency information would it be better to

Re: [CMake] Interface Libraries allow include directories but not link directories.. Why?

2017-08-23 Thread Eric Noulard
one conveyed through an INTERFACE library no. For example property "C_STANDARD" https://cmake.org/cmake/help/v3.7/prop_tgt/C_STANDARD.html is not conveyed by transitive linking/compiling. INTERFACE library convey "only" INTERFACE_ properties to targets linking to them.

Re: [CMake] Interface Libraries allow include directories but not link directories.. Why?

2017-08-23 Thread Eric Noulard
2017-08-23 14:10 GMT+02:00 Jean-Michaël Celerier < jeanmichael.celer...@gmail.com>: > > - Says that custom functions such as add_{project}_library shouldn't be > used and function definitions should be used as little as possible. Except > this just leads to extremely verbose CMakeLists where

Re: [CMake] Correct handling of absolute/relative installation paths

2017-07-27 Thread Eric Noulard
2017-07-27 12:28 GMT+02:00 David Demelier : > Hello, > > I'm still trying to find a correct solution to handle user specified > installation paths. > > Let's consider two kind of paths: > > - WITH_BINDIR (default: bin/) where to install executables, > - WITH_DATADIR

Re: [cmake-developers] Java language support regression (compared with 3.7.x and 3.8.x) for 3.9.0

2017-07-25 Thread Eric Noulard
2017-07-22 0:23 GMT+02:00 Alan W. Irwin : > I have built CMake-3.9.0 on my Linux (Debian Jessie) platform using > the bootstrap method I have always successfully used for other CMake > versions (including 3.7.2). > > For a complex project (PLplot) which uses

Re: [CMake] Create user and group with CPack

2017-07-20 Thread Eric Noulard
2017-07-20 13:48 GMT+02:00 Kristian : > Ok, I changed the postinstall script based on your suggestions: > > i.e. I changed these two lines: > > WEB_GROUP_ID="$(getent group "${WEB_GROUP}" | cut -d: -f3)" > and > > useradd "$WEB_USER" -g "${WEB_GROUP}" -M -r -s

Re: [CMake] Create user and group with CPack

2017-07-20 Thread Eric Noulard
2017-07-20 12:01 GMT+02:00 Kristian : > Hi, > > thank you for your reply. Yes, I add the script with > > set(CPACK_RPM_POST_INSTALL_SCRIPT_FILE "${CMAKE_CURRENT_SOURCE_DIR}/ > postinstall") > > and it basically works, because this file is changing a settings file >

Re: [CMake] Create user and group with CPack

2017-07-20 Thread Eric Noulard
2017-07-20 10:39 GMT+02:00 Kristian : > Hi, > > I create a RPM package with CPack. When installing this package on a > target system, it should create an additional user and group. > > My current solution is a postinstall script, wich runs at the end of > the

Re: [CMake] Transitive behavior of target_link_libraries between shared/static

2017-07-19 Thread Eric Noulard
2017-07-18 19:15 GMT+02:00 Hendrik Sattler <p...@hendrik-sattler.de>: > > > Am 18. Juli 2017 18:02:40 MESZ schrieb Eric Noulard < > eric.noul...@gmail.com>: > >2017-07-17 17:31 GMT+02:00 Robert Dailey <rcdailey.li...@gmail.com>: &

Re: [CMake] Transitive behavior of target_link_libraries between shared/static

2017-07-18 Thread Eric Noulard
2017-07-17 17:31 GMT+02:00 Robert Dailey : > Suppose I have the following: > > ``` > add_library( A STATIC ${files} ) > > add_library( B SHARED ${more_files} ) > target_link_libraries( B PUBLIC A ) > > add_library( C STATIC ${even_more_files} ) > target_link_libraries( C

Re: [CMake] ExternalProject + PREFIX + CPACK - cannot get the good path

2017-07-18 Thread Eric Noulard
> > >> Which makes me think, if you primary goal is to package an external >> project, wouldn't it be simpler to add support for a "PACKAGE" step to >> ExternalProject ? Or is this external project meant to be packaged in the >> same package as the project using it? >> > > I cannot add a package

Re: [CMake] ExternalProject + PREFIX + CPACK - cannot get the good path

2017-07-18 Thread Eric Noulard
2017-07-17 22:54 GMT+02:00 Alfred Sawaya : > Hello folks, > > I am trying to create a package with CPack from an External Project using > the autotools. The make install part try to copy files to /usr/local/lib, > but I do not want to package as root, so it fails. The cpack works

Re: [CMake] /path/to/libpng.so automatic conversion to -lpng ?

2017-07-13 Thread Eric Noulard
2017-07-13 13:01 GMT+02:00 René J. V. Bertin <rjvber...@gmail.com>: > Eric Noulard wrote: > > > From the command line I doubt it. > > Adding -DCMAKE_POLICY_DEFAULT_CMP0060=NEW on the commandline works. > Good to know. > > But whatever the reason, using PNG::PN

Re: [CMake] /path/to/libpng.so automatic conversion to -lpng ?

2017-07-13 Thread Eric Noulard
2017-07-13 12:07 GMT+02:00 René J. V. Bertin : [...] > > > > > The thing I don't understand is that you use CMake 3.8.2 so you should > get > > the new behavior. > > Are you sure? I read from the description above that you have to set the > policy > explicitly. > You are

Re: [CMake] /path/to/libpng.so automatic conversion to -lpng ?

2017-07-13 Thread Eric Noulard
2017-07-13 2:04 GMT+02:00 René J. V. Bertin : > Andreas Naumann wrote: > > > cmake instrospects your compiler and asks for system directories. > > Just stumbled across this documentation tidbit: > Thanks you for digging this. I totally ignored that "feature". > > >>>

Re: [CMake] /path/to/libpng.so automatic conversion to -lpng ?

2017-07-12 Thread Eric Noulard
2017-07-12 21:14 GMT+02:00 René J. V. Bertin : > Rolf Eike Beer wrote: > > >> It seems that clang handles that variable in a somewhat different manner > >> than GCC does. Even in a very simple call on the commandline (including > the > >> -v option) I see it adds

Re: [CMake] CmakeLists chain cannot find source added with add_custom_command

2017-07-05 Thread Eric Noulard
gt; > I kind of agree that it's easy to miss this constraint reading the > documentation, but there doesn't seem to be a better suggested > solution yet. > > Nick > > > On Sun, Jul 2, 2017 at 11:57 AM, Eric Noulard <eric.noul...@gmail.com> > wrote: > > Ok, > >

Re: [cmake-developers] Adding a new henerator for CMake

2017-07-03 Thread Eric Noulard
Hi Renato, Did you start to work on a Bazel generator for CMake? If not do you still plan to do it? Eric 2017-03-17 11:51 GMT+01:00 Renato Utsch : > Ooh good to know, I'll take a look at how you're doing that. > > No, the build system is Bazel. > > On Fri, Mar 17, 2017,

Re: [CMake] CmakeLists chain cannot find source added with add_custom_command

2017-07-02 Thread Eric Noulard
Needless to say that your example should work but somehow CMake does not see that the referred file is GENERATED. Le 2 juil. 2017 09:11, "Eric Noulard" <eric.noul...@gmail.com> a écrit : > Is the referred file created? > Does your actual command creating the file doing

Re: [CMake] CmakeLists chain cannot find source added with add_custom_command

2017-07-02 Thread Eric Noulard
Is the referred file created? Does your actual command creating the file doing it in the source tree and not in the build tree? Are you building in-source or out of source? Could you give us us a toy example which shows the issue? Le 2 juil. 2017 04:32, "J Decker" a écrit :

Re: [CMake] ctest: building test in parellel

2017-06-27 Thread Eric Noulard
2017-06-27 13:32 GMT+02:00 Damian Dixon : > Hi, > > Is there anyway to build tests in parallel when using ctest? > I'm not sure to understand. Do you want to **build** test in parallel or **run** test in parallel? > > I am generating makefiles on Linux. > Then $ make

Re: [CMake] my first experiences

2017-06-09 Thread Eric Noulard
Hi xen, Sorry to hear you lost so much time. Could you provide us with the version of your system and compiler? Did you try any source of precompiled version of CMake either from cmake.org or from your favorite system repo? If no why? Average CMake user don't ever compile CMake itself. Le 9

Re: [CMake] FW: CTest question

2017-05-18 Thread Eric Noulard
uot;/bin/sh;-c;cd /Users/tesari/build/gnu.dbg/CTEST/zamod > && /Users/tesari/build/gnu.dbg/bin/kodiak zamod" > > 113: -- Executing "python;/Users/tesari/kodiak/trunk/benchmark/Scripts/ > assert_case.py;/Users/tesari/build/gnu.dbg/CTEST/zamod/ > hskdk;/Users/tesar

Re: [CMake] CTest question

2017-05-17 Thread Eric Noulard
We lack information on how your test are failing. If they all timeout then may be you should setup a proper timeout for the test. The actual execution speed of a test may depend on the load of your machine or the network (depending on what the test are actually doing). This may be even more

Re: [CMake] Does JOB_POOL_[COMPILE|LINK] work with custom_target?

2017-05-15 Thread Eric Noulard
ja job pool. If I were to implement the feature would it be acceptable upstream ? Eric 2017-05-05 16:16 GMT+02:00 Eric Noulard <eric.noul...@gmail.com>: > Hi all, > > We have a bunch of custom_target and a subset of them should be run in > sequence. > So we tried to defi

Re: [cmake-developers] Does JOB_POOL_[COMPILE|LINK] work with custom_target?

2017-05-15 Thread Eric Noulard
ja job pool. If I were to implement the feature would it be acceptable upstream ? Eric 2017-05-05 16:16 GMT+02:00 Eric Noulard <eric.noul...@gmail.com>: > Hi all, > > We have a bunch of custom_target and a subset of them should be run in > sequence. > So we tried to defi

Re: [CMake] RPM package and relocation

2017-05-10 Thread Eric Noulard
2017-05-10 13:26 GMT+02:00 Kristian : > Hi, > > I am creating an RPM package, which on a standard installation should > install the file into /opt/ssp-suite directory. But I want to give the > user the opportunity, to install the package into another directory. > > I

[CMake] Does JOB_POOL_[COMPILE|LINK] work with custom_target?

2017-05-05 Thread Eric Noulard
Hi all, We have a bunch of custom_target and a subset of them should be run in sequence. So we tried to define: set_property(GLOBAL PROPERTY JOB_POOLS exclusive=1) and then: set_property(TARGET my_custom_target PROPERTY JOB_POOL_COMPILE exclusive) set_property(TARGET my_custom_target PROPERTY

[CMake] CTest: Running test depending on a commit/change

2017-04-26 Thread Eric Noulard
Is there any way to ask ctest run the set of tests impacted by a commit/change ? Or may be asking ctest to run only the tests that were built no later than say 3 min. ago. The use case is simple. I do some modification in my code call the build tool (ninja in my case) and I want ctest to only run

Re: [CMake] Question about transitive deps and static libs.

2017-04-18 Thread Eric Noulard
-buildsystem.7.html#transitive-usage-requirements does not contains clues on specific treatment for static libs. 2017-04-18 16:30 GMT+02:00 Eric Noulard <eric.noul...@gmail.com>: > I have a question concerning the transitive linking of dependence and > static libs. > > I'm wo

[CMake] Question about transitive deps and static libs.

2017-04-18 Thread Eric Noulard
I have a question concerning the transitive linking of dependence and static libs. I'm working a on prokect where some shared lib are linked to static lib (do not ask me why). So I do: set(CMAKE_POSITION_INDEPENDENT_CODE True) then I have a bunch of libraries (either static or shared) which

Re: [CMake] .so link and cpack

2017-04-09 Thread Eric Noulard
Hi Gonzalo, You should be able to build Deb package including symlink without trouble. Could you give the exact sequence of dpkg command which leads to the error you are speaking of? Does it work ok if you uninstall the previously installed deb package first? Do you install the very same

[CMake] Fwd: cmake --graphviz not dumping custom target in the graph

2017-03-29 Thread Eric Noulard
-- Forwarded message -- From: Eric Noulard <eric.noul...@gmail.com> Date: 2017-03-29 17:50 GMT+02:00 Subject: Re: [CMake] cmake --graphviz not dumping custom target in the graph To: Craig Scott <craig.sc...@crascit.com> After checking this does not change. It seems t

Re: [CMake] cmake --graphviz not dumping custom target in the graph

2017-03-29 Thread Eric Noulard
Wed, Mar 29, 2017 at 10:37 PM, Eric Noulard <eric.noul...@gmail.com> > wrote: > >> Hi all, >> >> It appears that cmake --graphviz command line option does not dump >> custom target >> in the generated dot graph but "only" target appearing in ad

[CMake] cmake --graphviz not dumping custom target in the graph

2017-03-29 Thread Eric Noulard
Hi all, It appears that cmake --graphviz command line option does not dump custom target in the generated dot graph but "only" target appearing in add_executable or add_library (plain or IMPORTED). Is there any fundamental reason for that ? I'd like to see ALL target (including custom) in my

Re: [CMake] Toggle Absolute paths in Eclipse Generator

2017-03-28 Thread Eric Noulard
Hi Michele, If you look into CMake ML history you'll find many discussions concerning the ABSOLUTE vs RELATIVE path for generated build systems. CMake had once an option for trying that, the support has been removed: https://cmake.org/cmake/help/v3.7/variable/CMAKE_USE_RELATIVE_PATHS.html So

Re: [CMake] Is it possible to run ctest outside build tree?

2017-03-26 Thread Eric Noulard
gt; > Dvir > > > > *From:* CMake [mailto:cmake-boun...@cmake.org] *On Behalf Of *Eric Noulard > *Sent:* Friday, March 24, 2017 13:04 > *To:* CMake Mailinglist <cmake@cmake.org> > *Subject:* [CMake] Is it possible to run ctest outside build tree? > > > >

Re: [CMake] Running test who have two labels?

2017-03-25 Thread Eric Noulard
2017-03-24 21:17 GMT+01:00 David Cole : > Here's a bash script wrapper you could use with existing ctest. Save > it out to a file named ctest-two-labels.sh and then call it with bash > on Mac or Linux: > > > label1=$1 > label2=$2 > > if [ -z "$label1" ]; then > echo "script

Re: [CMake] How to exclude linking from add_subdirectory?

2017-03-25 Thread Eric Noulard
You should check the options PUBLIC, PRIVATE, of the target_link_librairies. See: https://cmake.org/cmake/help/v3.7/command/target_link_libraries.html transitive linking is achieved through PUBLIC or INTERFACE whereas PRIVATE does not propagate. AFAIU your shared lib should PRIVATEly

Re: [CMake] Is it possible to run ctest outside build tree?

2017-03-24 Thread Eric Noulard
her than to propose adding a new command line argument for such purpose, or wrapping existing ctest with your own script or program of some sort. HTH, David C. On Fri, Mar 24, 2017 at 6:04 AM, Eric Noulard <eric.noul...@gmail.com> wrote: > Is possible to run ctest outside the builld tr

[CMake] VS Code generator?

2017-03-24 Thread Eric Noulard
Is there any plan to create/support a VS Code ( https://code.visualstudio.com/) generator? Since Visual Studio Code seems to be able to open Visual Studio Solution is it possible to have a working Visual Studio Generator on Linux? Any information/experience about using VS Code with CMake on

Re: [CMake] Running test who have two labels?

2017-03-24 Thread Eric Noulard
2017-03-24 12:30 GMT+01:00 Nils Gladitz <nilsglad...@gmail.com>: > On 03/24/2017 11:50 AM, Eric Noulard wrote: > > Hi there, >> >> I'm playing with ctest LABELS and I wanted to know whether if it is >> possible >> to run the set of tests which have 2 la

[CMake] Running test who have two labels?

2017-03-24 Thread Eric Noulard
Hi there, I'm playing with ctest LABELS and I wanted to know whether if it is possible to run the set of tests which have 2 labels ? I manage to have all tests which have **either** L1 or L2: ctest -L "L1|L2" but how can I write a proper command line for both L1 and L2 ? apparently ctest -L

[CMake] Is it possible to run ctest outside build tree?

2017-03-24 Thread Eric Noulard
Is possible to run ctest outside the builld tree and how? typical use is when I have an out of source build I may be in the source tree and want to run tests without manually going to build tree. i.e. I currently do: ninja -C /my/build/tree is there a similar way to do that with ctest (other

Re: [cmake-developers] Adding a new henerator for CMake

2017-03-17 Thread Eric Noulard
2017-03-17 11:51 GMT+01:00 Renato Utsch : > Ooh good to know, I'll take a look at how you're doing that. > > No, the build system is Bazel. > I'd be interested in a Bazel generator as well. I may help or review it depending on my spare time. Eric > On Fri, Mar 17,

Re: [CMake] install() rename with version string

2017-01-19 Thread Eric Noulard
You can try: include(version.cmake OPTIONAL) which will make include tolerate the absence of version.cmake, but then your install statement will only be OK after version.cmake has been created. 2017-01-19 9:30 GMT+01:00 Wagner Martin : > Hello, > > > > I’ve

Re: [CMake] cpack multiple packages

2016-12-21 Thread Eric Noulard
When playing with component you have 3 major way to package which are governed by the value of CPACK_COMPONENTS_GROUPING: 1 package per component -> set(CPACK_COMPONENTS_GROUPING IGNORE) 1 package for all -> set(CPACK_COMPONENTS_GROUPING ALL_COMPONENTS_IN_ONE) 1 package per component group the

Re: [CMake] Using cpack on an install directory

2016-11-18 Thread Eric Noulard
2016-11-18 13:35 GMT+01:00 : > Hello, > > I would like to know if it's possible to use cpack on an install directory > (without CMakeLists.txt file). > I've got a "complicated" build: > - one build in 64 bits > - one build in 32 bits > - one with license check > - one

Re: [CMake] Adding Cmake version in online documentation

2016-11-08 Thread Eric Noulard
2016-11-08 20:26 GMT+01:00 Albrecht Schlosser : > On 08.11.2016 15:22 Nils Gladitz wrote: > >> On 11/08/2016 03:11 PM, Dvir Yitzchaki wrote: >> >> But how do you know which version to declare on cmake_minimum_required? >>> If this feature will be added it won't be far

Re: [CMake] Change project name based on architecture

2016-11-04 Thread Eric Noulard
2016-11-04 5:06 GMT+01:00 B. Scott Harper : > I have a project where I manage multiple architectures and switch back and > forth frequently for testing. Full disclosure, I'm using Visual Studio. And > since I cannot generate a single solution with multiple architectures (per >

Re: [CMake] Force copy of files

2016-10-15 Thread Eric Noulard
2016-10-14 19:34 GMT+02:00 Aaron Boxer : > I have the following lines in my cmake file > > > foreach(f ${MyFiles}) > add_custom_command(TARGET ${OPENJPEG_PLUGIN_NAME} PRE_BUILD > COMMAND ${CMAKE_COMMAND} -E > copy ${f}

Re: [CMake] Need help generating a config file

2016-10-13 Thread Eric Noulard
2016-10-13 21:18 GMT+02:00 Aaron Boxer : > Hello, > > I have a foo.h.cmake.in file that I am using to generate a > foo_config.hfile. > > Here is the line in my cmake file that generates the header: > > configure_file(${CMAKE_CURRENT_SOURCE_DIR}/foo.h.cmake.in >

Re: [CMake] Proper way to find system copy of libxml2 on macOS

2016-10-12 Thread Eric Noulard
2016-10-12 18:04 GMT+02:00 Konstantin Tokarev <annu...@yandex.ru>: > > > 12.10.2016, 18:48, "Eric Noulard" <eric.noul...@gmail.com>: > > 2016-10-12 17:28 GMT+02:00 Konstantin Tokarev <annu...@yandex.ru>: > > > > > My guess is th

Re: [CMake] Proper way to find system copy of libxml2 on macOS

2016-10-12 Thread Eric Noulard
2016-10-12 17:28 GMT+02:00 Konstantin Tokarev : > Hello, > > In my cmake project I need to use system version of libxml2 on macOS > (/usr/lib/libxml2.dylib), however in case it is installed in MacPorts the > latter version is picked by find_package. On the other hand I'd like

Re: [CMake] Converting Autoconf-based tests that compile/run a program and check its exit code

2016-09-29 Thread Eric Noulard
2016-09-29 9:13 GMT+02:00 Alessandro Menti : > Hi everyone, > I'm converting an Autoconf-based library (specifically, gettext [1]) to > CMake to be able to compile it easily on Windows and to mark it as a > dependency of another CMake-based project. > > I have come

Re: [CMake] CPack change file extension

2016-08-26 Thread Eric Noulard
HI all, package is a builtin target unless things have changed you cannot depend on a builtin target. https://gitlab.kitware.com/cmake/cmake/issues/8438 https://cmake.org/Bug/view.php?id=8438 Personnally I would explicitely call CPack in my custom target in order to be sure that the zip is

Re: [CMake] Only install one component in cpack

2016-08-25 Thread Eric Noulard
Hi Tonka, You should read the doc here: https://cmake.org/cmake/help/v3.5/module/CPackComponent.html for the ZIP generator you should set(CPACK_ARCHIVE_COMPONENT_INSTALL ON) this is necessary because archive generator are "MONOLITHIC" by default. set(CPACK_COMPONENTS_GROUPING IGNORE) with this

Re: [CMake] CMake terminology

2016-06-27 Thread Eric Noulard
2016-06-25 17:42 GMT+02:00 Ruslan Baratov : > On 25-Jun-16 10:44, Craig Scott wrote: > > One of the slight wrinkles here is that the distinction between configure > and generation times is now a little stronger due to generator expressions. > In order to really

Re: [cmake-developers] Update bash completion scripts

2016-06-10 Thread Eric Noulard
2016-06-10 15:56 GMT+02:00 Brad King <brad.k...@kitware.com>: > On 06/10/2016 09:31 AM, Eric Noulard wrote: > > Here comes an update of the bash completion scripts. > > All of them now handle the same set of --help-xxx options > > the handling of --help-manual has been

[cmake-developers] Update bash completion scripts

2016-06-10 Thread Eric Noulard
Hi, Here comes an update of the bash completion scripts. All of them now handle the same set of --help-xxx options the handling of --help-manual has been added. -- Eric From b201a66ab61643066294d554434829399371f733 Mon Sep 17 00:00:00 2001 From: Eric NOULARD <eric.noul...@gmail.com> Dat

<    1   2   3   4   5   6   7   8   9   10   >