Re: [CMake] LINKER FLAGS

2011-09-13 Thread Eric Noulard
2011/9/13 pellegrini : > Hi all, > > I would like to build a Fortran90 project using Fortran intel compiler. I > would like to increase the stack by adding the "/stack" > flag to the linker. > > Looking on the documentation, I think that "set(CMAKE_EXE_LINKERS_FLAG > /stack:6400)" will do the j

Re: [CMake] Using CMake for Eclipse Indigo / CDT 8

2011-09-13 Thread Eric Noulard
2011/9/13 : > Hello, > > I usually develop with Visual STudio, but I have to code now on Eclipse so > that my software is runnable on Linux. > I so installed the last release of Eclipse, and want to run CMake 2.8.5 to > export an Eclipse project. > The solutions/projects that CMake generated for

Re: [CMake] Diff output from CMake?

2011-09-13 Thread Eric Noulard
2011/9/13 Clifford Yapp : > > > On Tue, Sep 13, 2011 at 1:58 PM, David Cole wrote: >> >> On Tue, Sep 13, 2011 at 1:39 PM, Alexander Neundorf >> wrote: >> > On Tuesday, September 13, 2011 05:07:00 AM Clifford Yapp wrote: >> >> I am trying to compare two large lists of file paths (about 14,000 >> >

Re: [CMake] creating a library -- folder layout??

2011-09-13 Thread Eric Noulard
2011/9/13 Cristobal Navarro : > hello everyone! > this is my first post on the mailing list > i am making a shared library > i have everything configured properly so that cmake creates de makefile > scripts as espected > at the moment cmake is installing my library by default into: > /usr/local/lib

Re: [CMake] Diff output from CMake?

2011-09-13 Thread Eric Noulard
2011/9/13 Clifford Yapp : > Eric - > > Excellent!  That looks like it will do the trick. > > Thank you! Please tell us about the performance but from the implementation of REMOVE_ITEM I bet the performance shouldn't be that good: inside cmListCommand.cxx: bool cmListCommand ::HandleRemoveItemCom

[CMake] Tutorial for new-style ctest scripting

2011-09-16 Thread Eric Noulard
Hi there, I want to setup a ctest + cdash submission for one of my open source project: https://savannah.nongnu.org/projects/certi/ I did open a free dashboard: http://my.cdash.org/index.php?project=CERTI I did write my script: http://cvs.savannah.gnu.org/viewvc/certi/scripts/certi-ctest.cmake?r

Re: [CMake] Rename unspecified component - how?

2011-09-17 Thread Eric Noulard
2011/9/17 Kishore Jonnalagadda : > In my project I am using the default component for all binaries and a "dev" > component for headers. > > But when I create packages, it creates one called "Unspecified" and another > called dev. How do I rename the unspecified component to be nameless? > > Somethi

Re: [CMake] Rename unspecified component - how?

2011-09-17 Thread Eric Noulard
2011/9/17 Kishore Jonnalagadda : > > On Sep 17, 2011 2:12 PM, "Eric Noulard" wrote: >> >> 2011/9/17 Kishore Jonnalagadda : >> > In my project I am using the default component for all binaries and a >> > "dev" >> > component for hea

Re: [CMake] Rename unspecified component - how?

2011-09-18 Thread Eric Noulard
2011/9/18 Kishore Jonnalagadda : > On Sat, Sep 17, 2011 at 2:12 PM, Eric Noulard wrote: >> 2011/9/17 Kishore Jonnalagadda : >>> In my project I am using the default component for all binaries and a "dev" >>> component for headers. >>> >>

Re: [CMake] Rename unspecified component - how?

2011-09-18 Thread Eric Noulard
2011/9/18 Eric Noulard : > 2011/9/18 Kishore Jonnalagadda : >> On Sat, Sep 17, 2011 at 2:12 PM, Eric Noulard wrote: >>> 2011/9/17 Kishore Jonnalagadda : >>>> In my project I am using the default component for all binaries and a "dev" >>>>

Re: [CMake] User generated header file

2011-09-18 Thread Eric Noulard
2011/9/18 Perry Ismangil : > I'm converting Visual Studio project files to CMake. > > On of our project, one of the header file included in the project is > deliberately missing, the user have to manually create it before > building for the first time. > > When I tried this with cmake, it complaine

Re: [CMake] User generated header file

2011-09-19 Thread Eric Noulard
2011/9/19 Perry Ismangil : > On Sun, Sep 18, 2011 at 16:47, C. Meissa wrote: >> >> Do you want the user to manually add the header, or do you want cmake >> to create it? >> > > User will manually add it before compile, so Eric mentioned setting > the GENERATED property to true, it works. The fact

Re: [CMake] Cross compiling in Win32 environment doesn't work

2011-09-19 Thread Eric Noulard
2011/9/19 Martin Kupke : > I'm using CMake in version 2.8.5 and just want to cross compile with a > decicated Compiler / Linker set on my Windows machine. Of course I've read > the FAQ and the Tutorial, afterwards I started trying to use CMake on a DOS > (cmd.exe) command line interface with CMakeL

Re: [CMake] Cross compiling in Win32 environment doesn't work

2011-09-19 Thread Eric Noulard
2011/9/19 Martin Kupke > > My problem (the error) already occurs in the toolchain file, this means > before the CMakeLists.txt is read. So far it is total independent of the > entries in the CMakeLists.txt! > > I have added the line: > message ("Mein CMakeLists.txt File") > in top of my CMakeLis

Re: [CMake] Windows: install conditionnaly an executable

2011-09-19 Thread Eric Noulard
2011/9/19 : > Hello, > > I would like to do this kind of installation: > > My package contains several executable with a version number by application > > - first install: install all the application and write a version number into > the windows registry > - update install: install only the appli

Re: [CMake] Windows: install conditionnaly an executable

2011-09-19 Thread Eric Noulard
Please do not drop the ML address. 2011/9/19 : >>> >>> How can I read with cmake the registry key "dynamically" in the installer >>> and use this version number to install conditionnaly some applications ? >> >>You need to have a look at your specific installer language (seems to be >>NSIS) in

Re: [CMake] SOLVED: Generated successfully NMake Makefile using CMake for Cross Compiling, but compiling with nmake fails

2011-09-20 Thread Eric Noulard
2011/9/20 Martin Kupke > > Hi, > > short info for those of you who run into the same pitfall. > I downloaded the free (free of charge) nmake tool version 1.50 from the > Microsoft website. The problem is this nmake tool which produces the problems > with blanks / spaces in folder- and filenames.

Re: [CMake] Post Packaging Script?

2011-09-22 Thread Eric Noulard
2011/9/22 Michael Jackson : > Is there some way to run a shell script/command/cmake script AFTER all the > packaging is completed? None that I am aware of. May be you can craft you own package_end_cleanup custom_command which would call 1) make package 2) cmake -E remove_directory _CPack_Packag

Re: [CMake] dmg CPack Options

2011-09-22 Thread Eric Noulard
2011/9/22 Michael Jackson : > I just found that and have been playing with it but if I set it to 1 then I > get the following error: > > CPack: Create package using DragNDrop > CPack: Install projects > CPack: - Run preinstall target for: DREAM3D > CPack: - Install project: DREAM3D > CPack: -   In

Re: [CMake] The output of cpack is an empty file

2011-09-27 Thread Eric Noulard
Second message for the list 2011/9/27 pellegrini : > Hello everybody, > > I would like to use cpack in order to gather a set of executables (built > statically) into a single archive that could be extracted everywhere the > user wants. > > My project architecture is the following: > > collections\

Re: [CMake] Does find_library check that a found library does in fact link?

2011-09-28 Thread Eric Noulard
2011/9/28 Michael Wild : > On 09/28/2011 07:47 AM, Clifford Yapp wrote: >> >> >> On Wed, Sep 28, 2011 at 12:13 AM, Michael Wild > > wrote: >> >>     On 09/28/2011 02:44 AM, Clifford Yapp wrote: >>     > I've run into a situation where find_library is returning a symlink: >

Re: [CMake] Cannot find appropriate C++ compiler on this system ...

2011-09-29 Thread Eric Noulard
2011/9/29 Albretch Mueller : >  I am using knoppix and I am trying to build cmake's sources into a > local directory, but this is what I get: > ~ > $ ./bootstrap; make; make install > - > CMake 2.8.5, Copyright 2000-2009 Kitware, Inc. > C compiler on this

Re: [CMake] Help regarding dependency..I guess..

2011-09-30 Thread Eric Noulard
2011/9/30 gaurav chetal : > Hello everyone.. > I have two library files in two different directories and my project > involves linking one library with the another..So i used > Target_link_libraries..but i am unable to execute the executable and it is > giving the error as > "In function `main': >

Re: [CMake] Help regarding dependency..I guess..

2011-09-30 Thread Eric Noulard
2011/9/30 gaurav chetal : Hi, Please do not drop he mailing list address. > My CMake version is 2.8..Its on linux yes!!!..But still if i dnt want to go > into the complexity (because m nt understanding the concept of RPath dat > easily) then what can i do so that my program gets executed I th

Re: [CMake] Help regarding dependency..I guess..

2011-09-30 Thread Eric Noulard
2011/9/30 gaurav chetal : > Respected sir!!!.. > > Actually i have made the static libraries..But the problems which m gettin > is that the program of the CMakeLists.txt is first of all nt able to pick up > the libraries (with TARGET_LINK_LIBRARY) and second thing those libraries > are of the heade

Re: [CMake] FYI - From Ninja-build mailing list - Fwd: Proposal: restat rules

2011-09-30 Thread Eric Noulard
2011/9/30 Alexander Neundorf : >> Summary: >> >>          build    dry    rebuild >> ninja   1m15.8   0m0.1    0m07.3 >> make    1m19.4   0m1.4    0m07.9 >> auto    3m19.9   0m2.1    0m13.0 >> >> So only the dry run shows a huge speedup (10-20 times faster) > > Not to question your numbers, but sho

Re: [CMake] STREQUAL not functioning?

2011-10-06 Thread Eric Noulard
2011/10/6 Robert Dailey : > According to the CMake documentation, the `STREQUAL` comparison is allowed > to take either a VARIABLE or a STRING as either parameter. So, in this > example below, the message does NOT print, which is broken: >     set( FUBARTEST "OK" ) >     if( FUBARTEST STREQUAL "OK"

Re: [CMake] Contribute two new find package implementation.

2011-10-07 Thread Eric Noulard
2011/10/7 Mathias Fröhlich : > > Hi, > > I have done and would like to contribute two new find package implementations. > These are both IEEE standardized successors rti1516 and rti1516e of the RTI > libraries  where cmake already has the predecessor library find package > implementation with FindR

Re: [CMake] Contribute two new find package implementation.

2011-10-07 Thread Eric Noulard
2011/10/7 Mathias Fröhlich : > > Hi, > > On Friday 07 October 2011, Eric Noulard wrote: >> Nice to ear from you on CMake ML. >> >> Module contribution process is described here: >> http://www.cmake.org/Wiki/CMake:Module_Maintainers > Puh, ok. > My probl

Re: [CMake] Contribute two new find package implementation.

2011-10-09 Thread Eric Noulard
2011/10/9 Alexander Neundorf : > On Friday 07 October 2011, Mathias Fröhlich wrote: >> Hi, >> >> I have done and would like to contribute two new find package >> implementations. These are both IEEE standardized successors rti1516 and >> rti1516e of the RTI libraries  where cmake already has the pr

[CMake] Contribute two new find package implementation.

2011-10-09 Thread Eric Noulard
Argh... forgot the list -- Forwarded message -- From: Eric Noulard Date: 2011/10/9 Subject: Re: [CMake] Contribute two new find package implementation. To: Michael Hertling 2011/10/9 Michael Hertling : > On 10/07/2011 07:06 PM, Eric Noulard wrote: >> 2011/10/

Re: [CMake] run tests on 5 machines

2011-10-10 Thread Eric Noulard
2011/10/10 Mihai Sandu : > How can I run tests on 5 machines in same time? > This is how I run the tests on a machine: > > execute_process (COMMAND ssh user@host "ctest -VV -O file.txt -S > Test.cmake") > > and I want to run this command in the same time on 5 machines. May be you can try pssh: htt

Re: [CMake] CTest outside of CMake

2011-10-17 Thread Eric Noulard
2011/10/17 Tim Gallagher : > Hi, > > We have our project set up to run a series of test cases, but we are treating > it as if we are not using CMake. I found a tutorial online on how to set it > up, and we have it running just fine when we want to run all of the tests. > But, I haven't figured o

Re: [CMake] Is there a DocBook file anymore

2011-10-18 Thread Eric Noulard
2011/10/18 Michael Jackson : > Hello, I am the maintainer of the CMakeEd Eclipse plugin and I was finally > going to update update the plugin to have the latest information for CMake > 2.8.6. The process that I have used in the past to populate the "command > completion" is to parse the DocBook

Re: [CMake] "Empty" ./CMakeFiles/Makefile2 - how to proceed?

2011-10-20 Thread Eric Noulard
2011/10/20 Alastair McKinstry : > > I'm building a debian package, CDAT. The latest version 6.0.alpha uses CMAKE > to build, rather than configure. The trouble is that CMake doesn't build. It > doesn't even fail. > > $ mkdir build > $ cd build > $ cmake .. > ()-- Configuring done > -- Generating do

Re: [CMake] getting all the function names

2011-10-20 Thread Eric Noulard
2011/10/20 Rolf Eike Beer : >> I'm starting to use cmake and I will have to rely on it pretty much in >> the future. >> >> I'm a bit overwhelmed by the quantity of variables / functions, is there >> a way >> to get an automatic list of all of them? >> >> It would be nice to improve the cmake-mode.e

Re: [CMake] CMake still broken post-2.8.1

2011-10-25 Thread Eric Noulard
2011/10/25 Phil Smith : > Ah, ok. With 2.8.1: > > C:/Program Files/Regina/regina.exe cc.rex dcc.exe   CMakeCCompilerId.c > > With 2.8.6: > C:/Program Files/Regina/regina.exe cc.rex;dcc.exe   CMakeCCompilerId.c > > Note the semicolon; where'd it come from? This is clearly a change of behavior but f

Re: [CMake] CMake still broken post-2.8.1

2011-10-25 Thread Eric Noulard
Sorry for previous unfinished e-mail. 2011/10/25 Phil Smith : > Ah, ok. With 2.8.1: > > C:/Program Files/Regina/regina.exe cc.rex dcc.exe   CMakeCCompilerId.c > > With 2.8.6: > C:/Program Files/Regina/regina.exe cc.rex;dcc.exe   CMakeCCompilerId.c > > Note the semicolon; where'd it come from? Thi

Re: [CMake] Checking for empty string

2011-10-25 Thread Eric Noulard
2011/10/25 Daniel Dekkers : > hi there, > > how do I test if a string is empty ("") or not ? > IF( ${test} STREQUAL "" ) > gives the wrong number of arguments if ${test} is "" Did you try IF( "${test}" STREQUAL "" ) ? -- Erk Membre de l'April - « promouvoir et défendre le logiciel libre » - ht

Re: [CMake] CMake still broken post-2.8.1

2011-10-25 Thread Eric Noulard
2011/10/25 Phil Smith : > OK, but it should then reject the extra parameters, since it used to work. Difficult to warn about a usage you did not even dream of ? Now that we know I agree there should be a warning (if not a clean failure with explanation). > > In any case, I've changed the toolchai

Re: [CMake] cpack problem

2011-10-27 Thread Eric Noulard
2011/10/27 : > Hello, > > I've built an installer using cmake / cpack / nsis. I work under windpws XP > 64 bits. > I first built a "monolithic" installer and everything is fine. My installer > have several components. > Now, I build a "network" installation. So, I added: > >  cpack_configure_dow

Re: [CMake] cdt4 generator and adding new source files from inside eclipse

2011-10-27 Thread Eric Noulard
2011/10/27 Dan Kegel : > On Wed, Oct 26, 2011 at 4:09 PM, Robert Dailey wrote: >> When you make any changes to any CMakeLists.txt, the Makefiles are setup to >> check this and invoke cmake to reconfigure and regenerate those makefile >> scripts. I only use Visual Studio generators, so I can't say

Re: [CMake] CMake still broken post-2.8.1

2011-10-27 Thread Eric Noulard
2011/10/27 Phil Smith : > Hmm. My zosport.cmake is now (comments/blank lines removed): > > SET(CMAKE_SYSTEM_NAME "IBM_ZOS") > SET(CMAKE_C_COMPILER_ID_RUN 1) > SET(CMAKE_C_PLATFORM_ID "MyPlatform") > SET(CMAKE_C_COMPILER_ID "MyCompiler") > SET(CMAKE_C_COMPILER   "regina") > SET(CMAKE_C_FLAGS "cc.rex

Re: [CMake] Registering imported library,

2011-10-27 Thread Eric Noulard
2011/10/27 Łukasz Tasz : > Problem solved. It would have been nice to know how :-] -- Erk Membre de l'April - « promouvoir et défendre le logiciel libre » - http://www.april.org -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/openso

Re: [CMake] CMake still broken post-2.8.1

2011-10-27 Thread Eric Noulard
Narrowing down the cc list, everybody should be subscribed to the list.. 2011/10/27 Phil Smith : > Toolchain. You lack some var definitions in your toolchain: see http://www.cmake.org/Wiki/CMake_Cross_Compiling#The_toolchain_file # where is the target environment SET(CMAKE_FIND_ROOT_PATH /home/

Re: [CMake] CMake still broken post-2.8.1

2011-10-27 Thread Eric Noulard
2011/10/27 Phil Smith : > Yeah, I know everyone thinks out-of-source builds are better, but we have > peculiar requirements related to packaging up the object decks and the like > that really make out-of-source builds unappealing. We've been doing this for > almost 4 years, so we're pretty happy

Re: [CMake] Suggestions on documenting my CMake modules

2011-10-29 Thread Eric Noulard
2011/10/29 Robert Dailey : > I have several complex functions which require a ton of documentation. I > wanted to type this documentation directly in the cmake file right above the > function() itself, but it is turning out to be a formatting nightmare. What kind of formatting do you need? > What

Re: [CMake] bash-script-like project

2011-10-30 Thread Eric Noulard
2011/10/30 Andrea Crotti : > I rephrase a bit the question which was probably too long :) > So suppose that I just need to do the following things (but in a portable > way with CMake). > > cd org-mode && make > cd tramp && autoreconf -fi && ./configure && make > cd doxymacs && autoreconf -fi && ./c

[CMake] CMake still broken post-2.8.1

2011-10-31 Thread Eric Noulard
2011/10/27 Phil Smith : > Ok, tried the CMakeLists change, no change. > > The Dignus-related files are attached. Thanks, nothing strange in there. Sorry for the delay, but I'm entering a not so much spare time loop moreover I should admit I do not have any more debugging idea for your problem. S

Re: [CMake] Visual Studio generator and visible projects

2011-11-01 Thread Eric Noulard
2011/11/1 Anton Sibilev : > Hello! Can you help me, please? > I'm generating VS 2010 solution/projects and finally when I open main > solution file I can SEE only ALL_BUILD project. > All builds fine, all projects exists. But I can't see them and work with > sources from them directly. What's wrong

Re: [CMake] [cmake-developers] To warn or to error out ? - wording and compatiblity

2011-11-01 Thread Eric Noulard
2011/11/1 Alexander Neundorf : > Hi, > > when using out-of-source builds and the Eclipse CDT project generator, a > "linked resource" is created in the Eclipse project file, which points to > CMAKE_SOURCE_DIR, so the user can browse the source directory. > > Now, when CMAKE_BINARY_DIR is a subdirec

Re: [CMake] CPACK_PACKAGE_DESCRIPTION_FILE for debian

2011-11-01 Thread Eric Noulard
2011/11/1 Erik Hofman : > > Hi, > > I'm new to this list and just recently started to use CMake and CPack. > So far I'm very pleased but there's one thing that I think could use > some improvement; > > As far as I van see (from Wiki) the RPM generating backend of CPack use You can get up to date d

Re: [CMake] [cmake-developers] To warn or to error out ? - wording and compatiblity

2011-11-01 Thread Eric Noulard
2011/11/1 Alexander Neundorf : > On Tuesday 01 November 2011, Eric Noulard wrote: [...] >> So before making the build dir as a source subdir case FATAL, are you sure >> we really don't want to authorize the generatiion of .project >> .cproject in the source dir >

Re: [CMake] CPACK not generating binary install

2011-11-01 Thread Eric Noulard
2011/11/1 David Cole : > INSTALL rule DESTINATION arguments are intended to be non-full path > directory names, that get placed underneath CMAKE_INSTALL_PREFIX. > > When CPack runs, it tries to build the install target after setting a > value into CMAKE_INSTALL_PREFIX. > > Since your install rules

Re: [CMake] CPACK_PACKAGE_DESCRIPTION_FILE for debian

2011-11-02 Thread Eric Noulard
2011/11/2 Erik Hofman : > On Tue, 2011-11-01 at 11:47 +0100, Eric Noulard wrote: >> I'll review it and probably merge it soon, since this looks reasonable. >> Note however that with CPackRPM you have both >> >> CPACK_RPM_PACKAGE_SUMMARY >> and >> CPACK_R

[CMake] mingw32 toolchain leads to "CMAKE_RC_COMPILER-NOTFOUND"

2011-11-04 Thread Eric Noulard
I'm trying to use a mingw32 toolchain on Linux (with cmake 2.8.6) and I get: -- The C compiler identification is GNU CMake Error: your RC compiler: "CMAKE_RC_COMPILER-NOTFOUND" was not found. Please set CMAKE_RC_COMPILER to a valid compiler path or name. -- Check for working C compiler: /usr/bin/

Re: [CMake] CMake download page seems missing

2011-11-06 Thread Eric Noulard
2011/11/6 Daniel smith : > I'm also having the same issue, > Tried multipul browsers, I've even asked other people to try and their Also > having the same issue. I think it's a server-side issue. Bug tracker has shown some weird error (seems disk space related) yesterday too. May be Kitware sys a

Re: [CMake] Component Package Name

2011-11-08 Thread Eric Noulard
2011/11/9 Gantry York : > I'm trying to set up component based packaging (with RPM).  I have it > working, I just can't control the name. You currently don't have full control over the package name. - for a non-component packaging you can chose the package name by setting: CPACK_PACKAGE_FILE_

Re: [CMake] Problem with cmake cross-compiling - make complains of missing header.

2011-11-09 Thread Eric Noulard
2011/11/9 Thomas Walwyn : > Hi All, > > > > I’m brand-new to cmake, and have run into a problem cross compiling for an > Intel embedded platform: > > > > Make complains about missing file 'curl/curl.h' when compiling against an > Intel SDK for linux. 'curl/curl.h' resides in the cross-compile toolc

Re: [CMake] CPack Generator jar support

2011-11-09 Thread Eric Noulard
2011/11/9 David Cole : > Adding a generator will require C++ modifications to the CPack code... but knowing that a jar file is a zip file subclassing cmCPackArchiveGenerator.[h|cxx] to cmCPackJARGenerator.[h|cxx] in the same way cmCPackZIPGenerator does should be fairly straightforward. Then you

Re: [CMake] CPack Generator jar support

2011-11-09 Thread Eric Noulard
2011/11/9 Alexander Broekhuis : > Hi Eric, >>> >>> By the way did you try the ZIP generator with >>> >>> set(CPACK_INSTALLED_DIRECTORIES "/path/to/META-INF;/META-INF") >>> >>> if some local (to the build) directory /path/to/META-INF contains >>> the appropriate MANIFEST.MF and INDEX.LIST your jar s

Re: [CMake] Adding a new language

2011-11-09 Thread Eric Noulard
2011/11/9 Stefan Monnier : > I'm trying to use cmake for a project using OCaml, so I'm trying to add > support for a new language. Just in case you weren't aware of that. There has been [several] discussions on the ML in the past concerning CMake OCaml support at least this one: http://www.cmake.

Re: [CMake] Issue with check_include_file() and GL/glxproto.h

2011-11-10 Thread Eric Noulard
2011/11/10 GOUJON Alexandre : > Hi, > > It all started when I tried compiling Piglit [1] : cmake checked all the > dependencies, didn't complain and generated Makefiles but doing 'make' > caused an error because a header was missing. > > So I proposed myself to write a patch and add the check. > Bu

Re: [CMake] CPack Generator jar support

2011-11-10 Thread Eric Noulard
2011/11/10 Alexander Broekhuis : > > >> By the way did you suppress the INSTALL rule concerning the MANIFEST >> you may have had before? > > Yes, this is what I tried. CMake seems to make an intermediate directory > which is zipped. So the order of the INSTALL/CPACK_INSTALLED_DIRECTORIES > doesn't

Re: [CMake] Issue with check_include_file() and GL/glxproto.h

2011-11-13 Thread Eric Noulard
2011/11/13 Michael Hertling : [...] > Sorry, I talked nonsense in my previous reply. Obviously, the line > > IF("${VARIABLE}" MATCHES "^${VARIABLE}$") > > serves to prevent the macro's re-execution if the result variable is > already defined, i.e. if the macro has most certainly been called > befo

Re: [CMake] CMake single-configuration makefiles

2011-11-13 Thread Eric Noulard
2011/11/13 Robert Dailey : > I understand that currently Makefiles generated by CMake are > single-configuration by-design. In other words, you can't issue a "debug" or > "release" command to make, you have to regenerate for a different > configuration. For this purpose you can use 2 build trees t

Re: [CMake] CMake deleting SVN directories

2011-11-16 Thread Eric Noulard
2011/11/16 Mauricio Klein : > Hello guys! > I have researched a lot about it but can't find a solution. > I have a project under SVN control and using CMake to compile the whole > code. But, when i run "make clean", the CMake clean its temporary > directories and the .svn directories too, what caus

Re: [CMake] cpack ppc64le rhel7.2 CPACK_RPM_PACKAGE_ARCHITECTURE

2016-06-08 Thread Eric Noulard
2016-06-08 9:45 GMT+02:00 Domen Vrankar : > > I am working on an IBM Power8 RHEL7.2 system and we installed cmake 3.6 > > (default cmake from repo was 2.8.12?) but it seems when making a package > > the arch is set incorrectly to x86_64 instead of ppc64le. > > I don't have access to a ppc with Lin

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 understand generator expressions, yo

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] 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 up-to-

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 across a test [2] that compiles

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 to > avoid hardcoding

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 : > > > 12.10.2016, 18:48, "Eric Noulard" : > > 2016-10-12 17:28 GMT+02:00 Konstantin Tokarev : > > > > > My guess is that your find_package call end up in "Module mode" because > there is a FindL

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 > ${CMAKE_CURRENT_BINARY

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} $) > endforeach() > > in order

Re: [CMake] Change project name based on architecture

2016-11-03 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 > everything I've foun

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 from writing a script >>> tha

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 without > > Every thing is in

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 de

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 searched for some time, but didn

[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 tha

[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 "

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

2017-03-24 Thread Eric Noulard
2017-03-24 12:30 GMT+01:00 Nils Gladitz : > 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 labels ? >> >> I ma

[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 Linux

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

2017-03-24 Thread Eric Noulard
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 wrote: > Is possible to run ctest outside the builld tree and how? > typical use is when I have an out o

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 target_link_l

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 takes two label arg

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

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

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 bas

[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 de

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

2017-03-29 Thread Eric Noulard
I did not try that. It appears that none of my custom target do belong to ALL. I'll try right away and let you know. 2017-03-29 14:30 GMT+02:00 Craig Scott : > Does the behavior change if your custom target is part of the ALL target > or not? > > On Wed, Mar 29, 2017 at 10:37

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

2017-03-29 Thread Eric Noulard
-- Forwarded message -- From: Eric Noulard Date: 2017-03-29 17:50 GMT+02:00 Subject: Re: [CMake] cmake --graphviz not dumping custom target in the graph To: Craig Scott After checking this does not change. It seems that the only targets that appear in the graph are the one from

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 packag

[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 depe

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

2017-04-18 Thread Eric Noulard
nual/cmake-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 : > I have a question concerning the transitive linking of dependence and > static libs. > > I'm working a on prokec

[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

[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 J

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 am doing this with these lines

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

2017-05-15 Thread Eric Noulard
re to implement the feature would it be acceptable upstream ? Eric 2017-05-05 16:16 GMT+02:00 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

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