Re: [CMake] Fwd: how to install files outside /usr in rpm?

2008-05-12 Thread Eric NOULARD
Le Mon, 12 May 2008 15:12:06 +0200, Erik Sjölund <[EMAIL PROTECTED]> a écrit : > On Sat, 2008-05-10 at 13:40 +0200, Eric Noulard wrote: > > 2008/5/7 Timenkov Yuri <[EMAIL PROTECTED]>: > > > > > Also, bunch of problems with building from non-root acc

Re: [CMake] Reading settings from generated files

2008-05-12 Thread Eric NOULARD
Le Mon, 12 May 2008 15:48:24 +0200, Andrea Gualano <[EMAIL PROTECTED]> a écrit : > I am cross-compiling for an embedded platform and I have to use a > third-party tool which, depending on a per-project configuration > file, does the following: > - compiles a .o file with some init code > - genera

[CMake] Why CPack does not _ALWAYS_ use DESTDIR?

2008-05-12 Thread Eric Noulard
Hi All, I did examine a problem with CPack RPM generator which had been reported by a user: http://public.kitware.com/Bug/view.php?id=7000 The issue concerned file/target installed with absolute path name which leads to the following error: CMake Error at cmake_install.cmake:40 (FILE): file ca

Re: [CMake] Ruby & Python Binding with SWIG in CMake

2008-05-12 Thread Eric Noulard
2008/5/12 David Graf <[EMAIL PROTECTED]>: > > Hello > > I have problems to generate Python and Ruby bindings with SWIG in CMake out > of one SWIG interface file. In the following example, I have a small > interface file and a CMake file that should generate Ruby and Python > bindings. But the Rub

Re: [CMake] Why CPack does not _ALWAYS_ use DESTDIR?

2008-05-13 Thread Eric Noulard
2008/5/13, Bill Hoffman <[EMAIL PROTECTED]>: > Eric Noulard wrote: > > > > Because for some projects DESTDIR may not work, and the default has been > set. To change it would break existing projects. Sorry about being pushy but in which kind of "project" DEST

Re: [CMake] Why CPack does not _ALWAYS_ use DESTDIR?

2008-05-13 Thread Eric Noulard
2008/5/13, David Cole <[EMAIL PROTECTED]>: > On Windows, where you have DESTDIR=C:/MyDir and an "absolute" install path > of "C:/Program Files/Whatever" > > "C:/MyDir/C:/Program Files/Whatever" is probably going to make somebody a > bit grumpy... Ok right, I see, DESTDIR and ABSOLUTE path shou

Re: [CMake] Why CPack does not _ALWAYS_ use DESTDIR?

2008-05-13 Thread Eric Noulard
2008/5/13, Bill Hoffman <[EMAIL PROTECTED]>: > > > There is one more issue. CPack is supposed to work with any build system > not just CMake. It might just be a set of hand crafted makefiles, and it > may or may not support DESTDIR. I suppose this could be taken care of by > only making DESTD

Re: [CMake] Fwd: how to install files outside /usr in rpm?

2008-05-13 Thread Eric Noulard
2008/5/13, Erik Sjölund <[EMAIL PROTECTED]>: > Thanks for the info! > > That works if the installed files are unmodified but what if I would > like to use > > configure_file(InputFile OutputFile > [COPYONLY] [ESCAPE_QUOTES] [EMAIL PROTECTED]) > > to accomodate for e.g. the def

Re: [CMake] Reading settings from generated files

2008-05-13 Thread Eric Noulard
2008/5/13 Andrea Gualano <[EMAIL PROTECTED]>: > Hello Eric, > > The custom command is something like this (I have removed all other > parameters for simplicity): > > ADD_CUSTOM_COMMAND ( > OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/compiler.opt > COMMAND xs ${CMAKE_CURRENT_SOURCE_DIR}/project.cf

Re: [CMake] Why CPack does not _ALWAYS_ use DESTDIR?

2008-05-13 Thread Eric Noulard
I all, I don't want to waste too much of our time on this since I don't think it is a "must really have feature" but I want to comment a little more. 2008/5/13 Bill Hoffman <[EMAIL PROTECTED]>: > Alexander Neundorf wrote: > We have projects that use it for non-cmake parts of the build. I don't

Re: [CMake] Getting the number of processor

2008-06-03 Thread Eric Noulard
2008/6/3 Mathieu Malaterre <[EMAIL PROTECTED]>: > Goal: be able to automate the -j flag option for make. In my ctest > script I would say: > > ... > IF("Unix Makefiles") > GET_NUMBER_OF_PROCESSORS(numproc) > SET(option "-j${numproc}") > ENDIF("Unix Makefiles") > ... If you are using GNU make may

Re: [CMake] CPack STGZ install directory

2008-06-08 Thread Eric Noulard
2008/6/8 Daniel Stonier <[EMAIL PROTECTED]>: > I've been trying to set the default install directory for cpack with the > stgz generator and a binary package build. However, nothing I do seems to > affect it - it uses a default of the present working directory. I'd like it > to default to /usr/loca

Re: [CMake] CPack STGZ install directory

2008-06-08 Thread Eric NOULARD
Le Mon, 9 Jun 2008 03:08:58 +0900, "Daniel Stonier" <[EMAIL PROTECTED]> a écrit : > 2008/6/9 Eric Noulard <[EMAIL PROTECTED]>: > > > 2008/6/8 Daniel Stonier <[EMAIL PROTECTED]>: > > > I've been trying to set the default install director

Re: [CMake] Make with dos paths

2008-06-12 Thread Eric Noulard
2008/6/12 Alin M Elena <[EMAIL PROTECTED]>: > HI Juan > > It may be easier than you think to port on Windows. > > Have a look at these links > > http://unxutils.sourceforge.net/ > > plus > > http://www.microsoft.com/downloads/details.aspx?FamilyID=60deac2b-975b-41e6-9fa0-c2fd6aa6bc89&displaylang=en

Re: [CMake] compile options

2008-06-18 Thread Eric Noulard
2008/6/18 Ingrid Kemgoum <[EMAIL PROTECTED]>: > hi, > i'm using cmake 2.6 for MSVC2005 and Linux. > As there is LINK_FLAGS_, is there a way to have different compile > flags for debug and release? > i've tried CMAKE_CXX_FLAGS_, COMPILE_FLAGS_,... this to say > any combinaison but none works. Did y

Re: [CMake] compile options

2008-06-18 Thread Eric Noulard
2008/6/18 Ingrid Kemgoum <[EMAIL PROTECTED]>: > yes i do have read that. > it's why i've tried CMAKE_CXX_FLAGS_. ( for DEBUG and > RELEASE). > but that have no effect on MSVC flags. > (on Unix after fixing the build type first, the CMAKE_CXX_FLAGS_ > works but not on windows!) Ok then it may be a

Re: [CMake] CPack system directory issues (PackageManager, RPM)

2008-06-18 Thread Eric Noulard
2008/6/18 Martin Blom <[EMAIL PROTECTED]>: > > Hi, > > I'm using CMake/CPack to package a system daemon, which is installing files > to different system directories like /etc, /usr/bin, /usr/share/doc etc. > > The problem I'm having is that I need to exclude these directories from the > package lis

Re: [CMake] Missing header files in Visual Studio project

2008-06-25 Thread Eric Noulard
2008/6/25 Martin Apel <[EMAIL PROTECTED]>: > Hi all, > > I am using the CMake generator for Visual Studio 2005 to generate multiple > projects. CMake generates one project file per library, which is fine. When > looking at a generated project inside Visual Studio the > project tree contains "Header

Re: [CMake] CPack ZIP error with NSIS on WinXP

2008-07-01 Thread Eric Noulard
2008/7/1 Mike Jackson <[EMAIL PROTECTED]>: > I am starting to dive into the CPack packaging system for my projects > and I have some basic questions that the wiki is not answering. > > 1. What "zip" program do I need to install or is recommended on > Windows XP to get the NSIS packager to run corre

Re: [CMake] CPack ZIP error with NSIS on WinXP

2008-07-02 Thread Eric NOULARD
Le Tue, 1 Jul 2008 17:57:29 -0400, Mike Jackson <[EMAIL PROTECTED]> a écrit : > I got the ZIP part to work by putting the 7zip.exe on my "path" in > windows xp. > > The last problem is still that CPack is NOT copying my 3rd party > libraries into the installer staging area. If I do a "make in

Re: [CMake] CPack ZIP error with NSIS on WinXP

2008-07-02 Thread Eric Noulard
2008/7/2 Mike Jackson <[EMAIL PROTECTED]>: > That was it. Thank you very much. I owe you one for that. I found some other > bugs in my cmake code because of this. You are welcome :=) > > Last question. It looks like CPack is generating both a .exe and a .zip > installer? Is this normal on window

Re: [CMake] Parameter LANGUAGE in set_source_files_properties

2008-07-07 Thread Eric Noulard
2008/7/7 <[EMAIL PROTECTED]>: > I have a little problem. > I have project's tree and several files with c extension and I want > to compile one file by g++ compiler and not c compiler. > > ./Trunk > | > ->TEST > | > ->test.c > ->test1.c > ->test2.c > ->CMakeLists.txt > | > ->CMakeLists.txt

Re: [CMake] Rpath removed from installed libraries?

2008-07-09 Thread Eric Noulard
2008/7/9 Georgios Petasis <[EMAIL PROTECTED]>: Hi George, Did you read this http://www.cmake.org/Wiki/CMake_RPATH_handling CMAKE_INSTALL_RPATH_USE_LINK_PATH is not the sole CMake var to setup for proper RPATH setting so may be you miss some. -- Erk __

Re: [CMake] how to make OpenGTL rpm?

2008-07-15 Thread Eric Noulard
2008/7/15 Matthew Woehlke <[EMAIL PROTECTED]>: > I'm trying to build an rpm of OpenGTL, with no success. I added > 'set(CPACK_GENERATOR "TGZ;RPM")' and 'include(CPack)' to the CMakeLists.txt, > but when I try to build the RPM, it wants to write to /usr (ah, shouldn't > rpm building NOT need to inst

Re: [CMake] how to make OpenGTL rpm?

2008-07-16 Thread Eric Noulard
2008/7/15 Matthew Woehlke <[EMAIL PROTECTED]>: >>> I'm trying to build an rpm of OpenGTL, with no success. I added >>> 'set(CPACK_GENERATOR "TGZ;RPM")' and 'include(CPack)' to the >>> CMakeLists.txt, Can you confirm you are using CMake 2.6.0 ? Then how do you invoke CPack? cpack -G RPM? make pack

Re: [CMake] how to make OpenGTL rpm?

2008-07-19 Thread Eric Noulard
2008/7/17 Matthew Woehlke <[EMAIL PROTECTED]>: > Eric Noulard wrote: >> >> 2008/7/15 Matthew Woehlke <[EMAIL PROTECTED]>: >>>>> >>>>> but when I try to build the RPM, it wants to write to /usr (ah, >>>>> shouldn't

Re: [CMake] CPack Stripping Debug

2008-08-02 Thread Eric Noulard
2008/8/1 Yuri V. Timenkov <[EMAIL PROTECTED]>: > On Thursday 31 July 2008 22:47:10 Bill Hoffman wrote: >> Paul Hatfield wrote: >> > When compiling a binary with CMAKE_BUILD_TYPE as RelWithDebInfo, I >> > verify that the binary has debug symbols, but when I generate an rpm >> > using Cpack the debug

[CMake] CPack RPM update

2008-08-26 Thread Eric Noulard
Hi All, I have update the CPack RPM documentation http://www.cmake.org/Wiki/CMake:CPackPackageGenerators#RPM_.28Unix_Only.29 Be aware that some variables described there are not currently supported by CPack since some patches are pending. (http://public.kitware.com/Bug/view.php?id=7435) Feedback

Re: [CMake] re-config on make all

2008-08-27 Thread Eric Noulard
2008/8/27 Vandenbroucke Sander <[EMAIL PROTECTED]>: > Hi, > > Sometimes CMake re-configures my build tree when running make. > Unfortunately CMake uses wrong options, I normally set those on the > command line. This forces me to re-config & rebuild my entire source > tree. This is a bit annoying si

Re: [CMake] CPack - some questions

2008-08-28 Thread Eric Noulard
2008/8/27 Vitor Vasconcelos Araujo Silva <[EMAIL PROTECTED]>: >Hello Eric, Hi Vitor, > >Well, that's what I needed. My Linux doesn't give me the DEB nor RPM > generators (NSIS also doesn't exists in my environment, but I knew that in > advance). So, my Linux environment probably l

Re: [CMake] [Cmake] Absolute paths in .cmake, .txt files

2008-09-04 Thread Eric NOULARD
Le Thu, 4 Sep 2008 09:13:31 -0400, "Bo Huang" <[EMAIL PROTECTED]> a écrit : > I observed that in .cmake, .txt, .depend, .sln, .vcproj files, paths > are always absolute when generated. Is there anyway to automatically > make them relative or set a global path? So far I can only change the > Visual

Re: [CMake] Clearing all cmake files

2008-09-10 Thread Eric Noulard
2008/9/9 Robert Kubrick <[EMAIL PROTECTED]>: > I did not use an out of source build, so that of course would simplify > things, but I still think that a command like: > > cmake erase > > Would be convenient to clear all cmake generated files and roll-back to the > scenario *before* 'cmake .' Yes, I

Re: [CMake] find_package vs. include

2008-09-17 Thread Eric Noulard
2008/9/17 Robert Haines <[EMAIL PROTECTED]>: > Hi all, > > As far as I can tell both (for example) find_package(MPI) and > include(FindMPI) do the same thing. All the required bits and pieces are set > and usable for the rest of the build. > > Is there any difference under the hood, and should I be

Re: [CMake] using cmake with google's protocol buffers

2008-09-18 Thread Eric Noulard
2008/9/18 Neil Girdhar <[EMAIL PROTECTED]>: > > Hi, I'm trying to add a special cmake rule to build google's protocol > buffers, and I was hoping someone could help me do it. I've broken down the > details of the protocol compiler here, so all that's missing is a cmake > expert. Did you look at t

Re: [CMake] convert variable from hex to integer

2008-09-19 Thread Eric Noulard
2008/9/19 Olaf Peter <[EMAIL PROTECTED]>: > Hi, > > for a generated version header I need to convert a given hex to an integer. > I've wrote: > > set(RELEASE_LEVEL_ALPHA 0xA)# For internal use > set(RELEASE_LEVEL_BETA 0xB)# For internal use > set(RELEASE_LEVEL_GAMMA 0xC)# For release c

Re: [CMake] Google's protocol buffers cmake module

2008-09-19 Thread Eric Noulard
2008/9/19 Esben Mose Hansen <[EMAIL PROTECTED]>: > On Friday 12 September 2008 14:08:01 Esben Mose Hansen wrote: >> Hi, >> >> I was unable to find a cmake module for google's protocol buffers, so I >> wrote my own. Is there some sort of repository for these things? The module >> probably does not h

Re: [CMake] possible bug report on release binary dynamic library search paths

2008-09-19 Thread Eric Noulard
2008/9/19 Christopher Harvey <[EMAIL PROTECTED]>: > Sorry about the long subject, > > My question is about the way cmake defines dynamic link library search paths > for release builds of executables. I've got an executable, written in C++ > that depends on a shared library within the same project.

Re: [CMake] how to link with a system library ?

2008-09-21 Thread Eric Noulard
2008/9/21 Steven Samuel Cole <[EMAIL PROTECTED]>: > I would like to link a system library into an executable, GTK in this case. > What I'm trying to do is > > include(FindGTK) > > target_link_libraries(myexec $GTK_LIBRARIES) > > add_executable (myexec sources) > > Result: > > CMake Error: Attempt t

Re: [CMake] how to link with a system library ?

2008-09-21 Thread Eric Noulard
2008/9/21 Mike Jackson <[EMAIL PROTECTED]>: >>> www.bluequartz.net >> >> CMake Error: GTK NOT FOUND >> -- Configuring done >> make: *** [cmake_check_build_system] Error 255 >> >> GTK 2.0 comes into my Kubuntu 8.0.4 system with a standard debian package. >> Nothing customized. All in standard paths.

Re: [CMake] [New Module] FindXXX module for RTI

2008-09-22 Thread Eric Noulard
2008/9/22 Philip Lowman <[EMAIL PROTECTED]>: > On Sat, Sep 13, 2008 at 4:12 PM, Gotthard, Petr > <[EMAIL PROTECTED]> wrote: >> >> Hello, >> would you accept a new module: FindRTI.cmake? >> [...] >> >> First version of the FindRTI.cmake module is ready and I volunteer to be >> its maintainer. > > I

Re: [CMake] (CPack) Separate packaging of subdirectories

2008-10-02 Thread Eric Noulard
2008/10/2 0xd34df00d <[EMAIL PROTECTED]>: > Hi there! > > I have a project which consists of main application, few helper > libraries and some plugins, each of them is in its own directory with > own CMakeLists.txt and target. Targets are added using ADD_LIBRARY and > ADD_EXECUTABLE commands. > How

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

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] 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 th

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 à 18:31, George PF a écrit : > Thank you for the precise pointers, I added to the same CMakeLists.txt: > > get_property(mysrcs TARGET mylib PROPERTY SOURCES) > > foreach(x IN LISTS mysrcs) > message("at ${x}") > set_property(SOURCE x APPEND PROPERTY CO

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 à 19:18, George PF a écrit : > > > However, whatever I write into 'set_property()' - no APPEND, single > entry, > > > not quoted - does not end up > > > on the compiler command line. Is there a type mismatch which is > silently > > > ignored? > > > > > > > Or you are doing th

Re: [CMake] Iterating over a generator expression list, specifically $ of an OBJECT library

2018-08-28 Thread Eric Noulard
Le mar. 28 août 2018 à 15:39, George PF a écrit : > Hello, > > how can e.g. $ be iterated over in cmake? > > This builds the lib, but the loop is never run: > > add_library(objlib12 OBJECT lib1.c lib2.c) > foreach(o IN LISTS $) > message("obj ${o}") > endforeach() > > But the

Re: [CMake] Iterating over a generator expression list, specifically $ of an OBJECT library

2018-08-28 Thread Eric Noulard
I cc the list because I think you drop it inadvertently. Le mar. 28 août 2018 à 16:18, George PF a écrit : > > Because generator expressions are not handled in every cmake construct: > > > https://cmake.org/cmake/help/v3.12/manual/cmake-generator-expressions.7.html > > > > genex is probably not

Re: [CMake] how do you allow CMAKE_CUDA_COMPILER to be optional via project LANGUAGE?

2018-08-28 Thread Eric Noulard
Le mar. 28 août 2018 à 19:07, Quang Ha a écrit : > Hi all, > > So this question is again about project(foo LANGUAGES CXX CUDA). Is it > possible to switch off CUDA if Cmake couldn't find CUDA compiler? I.e. > something along the line: > May be you can only: project(foo LANGUAGES CXX) then i

Re: [CMake] Iterating over a generator expression list, specifically $ of an OBJECT library

2018-08-29 Thread Eric Noulard
Le mer. 29 août 2018 à 14:44, George PF a écrit : > > > > > My opinion (but I may be proven wrong by others) is that genex contains > > generator specific bits that cannot be **evaluated** > > until the build system is generated. Properties (on target, or > directory, > > or files) contains info

Re: [CMake] Specify extra files for display in IDE

2018-08-30 Thread Eric Noulard
Le jeu. 30 août 2018 à 12:32, Daniel Eiband a écrit : > Hi, > > > > I’m currently migrating a code base from a proprietary MSBuild based > generator to CMake 3.11 which is shipped with Visual Studio. There are two > aspects to this task: > > > > 1) Integration of custom build steps > > 2) Present

Re: [CMake] find_package with COMPONENTS never honors REQUIRED

2018-08-30 Thread Eric Noulard
Le jeu. 30 août 2018 à 18:01, George PF a écrit : > Hi, > > once COMPONENTS is added to a find_package statement, any REQUIRED > statement ceases to have an effect: > > cmake_minimum_required(VERSION 3.12) > > # find_package(FailsCorrectly REQUIRED) > > find_package(Qt REQUIRED COMPON

Re: [CMake] find_package with COMPONENTS never honors REQUIRED

2018-08-30 Thread Eric Noulard
Le jeu. 30 août 2018 à 20:03, George PF a écrit : > > The documentation is intriguing about REQUIRED COMPONENTS interaction > > That's... one way to put it. > Yeah you know. Kind of ironic here :-) > > So it is possible that the failure behavior when specifying COMPONENTS > is up to the mo

Re: [CMake] creating a library from other one

2018-08-31 Thread Eric Noulard
First create OBJECT libraries instead of static Then create as many STATIC libraries as you want that includes as many OBJECT libraries content as you want. Le ven. 31 août 2018 à 15:17, Stéphane Ancelot a écrit : > Hi, > > I have got some static libraries generated, that I would like to put i

Re: [CMake] creating a library from other one

2018-08-31 Thread Eric Noulard
Le ven. 31 août 2018 à 15:59, Stéphane Ancelot a écrit : > I ended with : > > add_custom_target(combined ALL >COMMAND ${CMAKE_AR} rc libcombined.a $ $ FILE:lib2>) > Quick & dirty :-) There is the "thin" option of ar as well: https://stackoverflow.com/questions/3821916/how-to-merge-two-ar-sta

Re: [CMake] Specify extra files for display in IDE

2018-09-05 Thread Eric Noulard
Le mer. 5 sept. 2018 à 11:00, Daniel Eiband a écrit : > Hi, > > > > I managed to solve the presentation of object libraries by renaming the > targets and hiding certain targets in folders. I think this solution is > acceptable. > > > > The issue with the display of header only libraries in IDEs,

Re: [CMake] unknown cmake command

2018-09-09 Thread Eric Noulard
Le dim. 9 sept. 2018 à 06:52, Robert Finch a écrit : > Hi, cmake is new to me. I’m attempting to use cmake to build a backend for > LLVM. CMake fails with an ‘unknown cmake command’ error. It doesn’t seem to > be able to find or execute modules or macros. I tried setting the > CMAKE_MODULE_PATH,

Re: [CMake] overriding -03 -DNDEBUG Release flags

2018-09-10 Thread Eric Noulard
Le lun. 10 sept. 2018 à 14:34, Stéphane Ancelot a écrit : > Hi, > > In one project I need to compile with -O2 option , how to set it and > remove -O3 -DNDEBUG flags for this project ? > May be you can create a new Build Type with appropriate flags: https://gitlab.kitware.com/cmake/community/wiki

Re: [CMake] Problems with static jpeg library

2018-09-11 Thread Eric Noulard
Le mar. 11 sept. 2018 à 16:10, a écrit : > Hi, > > thank you for your reply. I could solve the problem. The part I didn't > knew was that static libraries also needed to be compiled with -fPIC. > I've found a good summary of this topic at > https://lists.debian.org/debian-devel/2016/05/msg00309.h

Re: [CMake] Appending to CMAKE_CXX_FLAGS

2018-09-11 Thread Eric Noulard
Le mar. 11 sept. 2018 à 22:09, Michael Jackson a écrit : > I add it manually each and every time. I have to tell all new developers > to remember to add the flag otherwise they are still sitting after an hour > waiting on our code to compile wondering why it takes so long. Then it hits > us, "Oh,

Re: [CMake] --config Parameter position relevant?

2018-09-19 Thread Eric Noulard
Le mer. 19 sept. 2018 à 13:43, Dennis Luehring a écrit : > build environment: > > Win7 x64 > VStudio 2017 Community Edition 15.8.4 (latest) > CMake 3.12.1 (x86) > git 2.19.0 (latest, x64) > Python 2.7.2 (x86) > > directory structure: > > D:/projects/fun/jit_tests/clang_from_src/ >llvm <-- git

[CMake] CMake Cookbook is out!!

2018-09-27 Thread Eric Noulard
Hi CMakers, Hi try not do that too often but here comes a little promotion for a book which (I think) deserve attention. The CMake Cookbook by Radovan Bast, Roberto Di Remigio https://www.packtpub.com/application-development/cmake-cookbook I'm not the author but I participate in the book review a

Re: [CMake] CMake Cookbook is out!!

2018-09-27 Thread Eric Noulard
Le jeu. 27 sept. 2018 à 23:49, Alan W. Irwin a écrit : > On 2018-09-27 20:26+0200 Eric Noulard wrote: > > > Hi CMakers, > > > > Hi try not do that too often but here comes a little promotion for a book > > which (I think) deserve attention. > > The CMake

Re: [CMake] Making variables visible in ccmake

2018-09-28 Thread Eric Noulard
Le ven. 28 sept. 2018 à 11:59, Dorier, Matthieu a écrit : > Hi, > > > How do I make a variable visible in the ccmake tool? > > For example I would like the user to be able to edit BOOST_ROOT when > calling ccmake, how can I do that? > > > Right now all I see when first running ccmake is "EMPTY_CA

Re: [CMake] Making variables visible in ccmake

2018-09-28 Thread Eric Noulard
Le ven. 28 sept. 2018 à 13:03, Dorier, Matthieu a écrit : > Ah then maybe I don't understand correctly what is supposed to be > displayed by ccmake. > My usage workflow, not sure it is the expected one but other CMake users/developers may correct me if my usage is wrong. 1) Launch ccmake in an

Re: [CMake] Detailed graphviz graph?

2018-10-03 Thread Eric Noulard
Le mer. 3 oct. 2018 à 09:19, Jan Wielemaker a écrit : > Hi, > > Debugging dependencies is not always easy. The -graphviz option is a > nice try, but only seems to do the built-in target types. Is there > some way to get the whole dependency graph, including custom targets > and possibly also th

Re: [CMake] Trouble with conditional generator expression inside target_link_libraries

2018-10-04 Thread Eric Noulard
Le jeu. 4 oct. 2018 à 16:06, Björn Blissing a écrit : > Hello, > > > > I am having trouble with a conditional generator expression inside target > link libraries, which seems to expand incorrectly (or at least not the way > I expect). > > > > In short, I have a list of libraries that is found by

Re: [CMake] Trouble with conditional generator expression inside target_link_libraries

2018-10-04 Thread Eric Noulard
Le jeu. 4 oct. 2018 à 16:53, Björn Blissing a écrit : > Hello Eric, > > > > The minimal example was just to display the expansion error. In real life > the code uses a Boolean variable (and the rest of the CMake code is much > larger as well). > It was just to show the expansion error you get if

Re: [CMake] Trouble with conditional generator expression inside target_link_libraries

2018-10-04 Thread Eric Noulard
r ninja generator whereas you get proper "-lbar" I don't know why this happen but it really looks like a bug. > > > I don’t know if other CMake functions will react similarly bad to the > list/bool operator combo. > > > > Regards, > > Björn > > >

Re: [CMake] Trouble with conditional generator expression inside target_link_libraries

2018-10-04 Thread Eric Noulard
Le jeu. 4 oct. 2018 à 18:59, Marc CHEVRIER a écrit : > I am afraid that you cannot mix "optimized" or "debug" keywords with > "generator expressions" because keywords handling is done during evaluation > of command "target_link_libraries" and "generator expressions" are > evaluated during generat

Re: [CMake] Detailed graphviz graph?

2018-10-07 Thread Eric Noulard
Le sam. 6 oct. 2018 à 18:15, Jan Wielemaker a écrit : > On 03/10/18 09:53, Eric Noulard wrote: > > > > Are those three add_custom_xxx in the same directory? > > DEPENDS for custom_xxx do not cross directory. > > So this was not the problem. The problem was that o

Re: [CMake] how to debug CPack creation

2018-10-20 Thread Eric Noulard
Le sam. 20 oct. 2018 à 10:15, Илья Шипицин a écrit : > hi, > > we use cmake/cpack for mangling systemd scripts > > > https://github.com/SoftEtherVPN/SoftEtherVPN/blob/master/src/vpnserver/CMakeLists.txt#L26 > > what happens: > > (*) deb installs files to /usr/libexec > (*) cmake sets location as

Re: [CMake] how to debug CPack creation

2018-10-20 Thread Eric Noulard
Le sam. 20 oct. 2018 à 10:54, Илья Шипицин a écrit : > > > сб, 20 окт. 2018 г. в 13:30, Eric Noulard : > >> >> >> Le sam. 20 oct. 2018 à 10:15, Илья Шипицин a >> écrit : >> >>> hi, >>> >>> we use cmake/cpack for mangling sys

Re: [CMake] how to debug CPack creation

2018-10-20 Thread Eric Noulard
> > > And the content is: > $ rpm -qpl softether-vpnserver-5.1.9660-1.x86_64.rpm > /lib > /lib/systemd > /lib/systemd/system > /lib/systemd/system/softether-vpnserver.service > /usr/libexec > /usr/libexec/softether > /usr/libexec/softether/vpnserver > /usr/libexec/softether/vpnserver/hamcore.se2 >

Re: [CMake] Signing individual binary and problem with PackageMaker CPack generator

2018-10-22 Thread Eric Noulard
Le lun. 22 oct. 2018 à 11:56, Anatoly Belyaev a écrit : > We use "PackageMaker" generator on MacOS. But i don't think it is CPack > specific tool does call strip command. The code for RPATH rewrite and > strip cmd is located in cmake_install.cmake. As i understand CPack calls > make install to

Re: [CMake] Signing individual binary and problem with PackageMaker CPack generator

2018-10-22 Thread Eric Noulard
Le lun. 22 oct. 2018 à 23:05, Craig Scott a écrit : > >> Yes I agree that having build rpath is useful. >> I am not aware of any mechanism that enable calling some tool during >> CPack's install step. >> Moreover I don't use MacOS at all so I don't have any experience with >> PackageMaker. >> >>

Re: [CMake] how to debug CPack creation

2018-10-22 Thread Eric Noulard
g your CMAKE_INSTALL_PREFIX if your CI is producing ready to use .deb / .rpm etc... package then you'd better use "/opt" as a prefix as suggested by Craig. > сб, 20 окт. 2018 г. в 17:59, Eric Noulard : > >> >> >> Le sam. 20 oct. 2018 à 10:54, Илья Шипицин a

Re: [CMake] Signing individual binary and problem with PackageMaker CPack generator

2018-10-23 Thread Eric Noulard
Le mar. 23 oct. 2018 à 12:06, Craig Scott a écrit : > > > On Tue, Oct 23, 2018 at 4:43 PM Eric Noulard > wrote: > >> Le lun. 22 oct. 2018 à 23:05, Craig Scott a >> écrit : >> >>> >>>> Yes I agree that having build rpath is useful. >>

Re: [CMake] CPack disable build all

2018-11-09 Thread Eric Noulard
Le ven. 9 nov. 2018 à 17:22, DKLind a écrit : > I have a very large project where each sub-project creates a debian > package. > > When "make/ninja package" is specified, it performs a "make/ninja all" > before packaging. I would prefer to perform a "make/ninja all" myself > before > I doing a "m

Re: [CMake] Tips on reducing configure time

2018-11-14 Thread Eric Noulard
Hi Victor, Le mer. 14 nov. 2018 à 10:20, Poughon Victor a écrit : > Hi all > > I am working on a large C++ project using CMake ( > https://www.orfeo-toolbox.org/) and our 'configure' step takes quite a > lot of time. This can be annoying for developers working on features where > the configure s

Re: [CMake] Tips on reducing configure time

2018-11-14 Thread Eric Noulard
Le mer. 14 nov. 2018 à 12:06, Poughon Victor a écrit : > Thanks for the replies > > > > You can see configure times on our dashboard (switch to advanced view): > https://dash.orfeo-toolbox.org/index.php?project=OTB > > It ranges from 1-3min. There's even one windows machine that's at 4m30s. > So

Re: [CMake] Tips on reducing configure time

2018-11-14 Thread Eric Noulard
Le mer. 14 nov. 2018 à 13:25, Poughon Victor a écrit : > Yes you are correct on all your observations. We already use ninja and > ccache wherever we can. In fact we have an issue about the whole end-to-end > build performance where we track all effort on this throughout the project > (if you're i

Re: [CMake] cmake 3.12 - python libs / 32 / 64 bits

2018-11-15 Thread Eric Noulard
Le jeu. 15 nov. 2018 à 09:47, Stéphane Ancelot a écrit : > I agree. That was a debug snippet...but is wrong ... I setted up again the > toolchain, but does not help. > If you are using a proper toolchain for 32bit compilation. It looks like a bug in the find_package for Python in the cross-compi

Re: [CMake] How to find GTK3 in CMake

2018-11-21 Thread Eric Noulard
Le mer. 21 nov. 2018 à 09:46, David Demelier a écrit : > Le 20/11/2018 à 17:03, Harry Mallon a écrit : > > Hi, > > > > FindGTK and FindGTK2 exist in the CMake tree. How come there isn't one > for GTK3? Should the GTK2 one work, or is there another way? > > GNOME people don't like CMake (they use

Re: [CMake] CPack RPM: file XXX conflicts with file from package filesystem-yyy...

2018-11-22 Thread Eric Noulard
Le jeu. 22 nov. 2018 à 16:16, Mario Emmenlauer a écri > > I'm trying to build an RPM with CPack, and everything seems to work, > but the resulting package can not be installed. I get Transaction check > error: > file / from install of conflicts with file from package > filesystem-3.2-25.el7.x8

Re: [CMake] CPack RPM: file XXX conflicts with file from package filesystem-yyy...

2018-11-23 Thread Eric Noulard
Le ven. 23 nov. 2018 à 11:10, Mario Emmenlauer a écrit : > > Dear Eric, thanks for the help! Below more: > > On 22.11.18 18:20, Eric Noulard wrote: > > Le jeu. 22 nov. 2018 à 16:16, Mario Emmenlauer <mailto:ma...@emmenlauer.de>> a écri > > I'm

Re: [CMake] CPU specific compiler flags

2018-11-26 Thread Eric Noulard
Le lun. 26 nov. 2018 à 09:36, Ciccio Pasticcio a écrit : > Hi all, > > I'm refactoring some libraries cmake files to be compliant to the use of > targets instead of tons of variables. Since these libraries are > cross-compiled I'm facing some problem finding how to properly set some > specific fl

Re: [CMake] CPack RPM: file XXX conflicts with file from package filesystem-yyy...

2018-11-27 Thread Eric Noulard
5:37, Mario Emmenlauer wrote: > > > > Dear Eric, > > > > thanks a lot for this help! I think I have the pointers to move forward! > > One more detail below: > > > > On 23.11.18 11:36, Eric Noulard wrote: > >> Le ven. 23 nov. 2018 à 11:10, Mario Emmen

Re: [CMake] Can an option enforce a default, even if cache is present?

2018-11-27 Thread Eric Noulard
Le mar. 27 nov. 2018 à 14:50, Mario Emmenlauer a écrit : > > Dear all, > > I've just discovered that option() behaves differently than I anticipated. > After reading the docs and searching with google I'm still confused how to > achieve my desired behaviour. > > What I've just learned is that uns

Re: [CMake] dependencies of cross compiliations

2018-11-27 Thread Eric Noulard
Le mar. 27 nov. 2018 à 11:28, Rolf Eike Beer a écrit : > Am 2018-11-09 10:04, schrieb Torsten Robitzki: > > Hi, > > I hope this question was not asked before. I work in the embedded > > field and there it is usually to have at least two different build > > platforms. The Host platform, where unit

Re: [CMake] Build and run an external project

2018-12-03 Thread Eric Noulard
Did you check whether if https://cmake.org/cmake/help/latest/command/include_external_msproject.html wouldn't be better in your case? Le mar. 4 déc. 2018 01:43, James Bigler a écrit : > I have an external project that I would like to compile using their build > system, and be able to set the V

Re: [CMake] Build and run an external project

2018-12-03 Thread Eric Noulard
Le mar. 4 déc. 2018 à 06:11, James Bigler a écrit : > Unfortunately I don't think your suggestion will work. > > I need to invoke a custom executable to build my project and not a > msproject. I also need to copy the executable into the build directory. > Sorry I miss the fact that you moved th

Re: [CMake] New version forces rebuild all?

2018-12-04 Thread Eric Noulard
Le mar. 4 déc. 2018 à 11:44, Andy a écrit : > Problem are still. > Alone make also give me problems. > Do you have stripped down project example? > Ninja is replacement od cmake or make? > ninja (https://ninja-build.org/) is make replacement for which there is a CMake generator. https://cmake

Re: [CMake] dependencies of cross compiliations

2018-12-10 Thread Eric Noulard
Le dim. 9 déc. 2018 à 12:24, Craig Scott a écrit : > On Tue, Dec 4, 2018 at 6:56 PM Torsten Robitzki > wrote: > >> > Am 27.11.2018 um 19:55 schrieb Eric Noulard : >> > >> > My assumption are: >> > a) when you cross-compile your build is a &q

Re: [CMake] Make errors when running ./bootstrap in Ubuntu 12.04

2018-12-14 Thread Eric Noulard
Did you try to pick a pre-compiled version of CMake? https://cmake.org/download/ https://github.com/Kitware/CMake/releases/download/v3.13.2/cmake-3.13.2-Linux-x86_64.tar.gz CMake is statically linked so installing a binary should work. Le ven. 14 déc. 2018 à 17:48, Paul Jeffries a écrit : > Dea

Re: [CMake] Tracking progress of CMake TAR

2018-12-17 Thread Eric Noulard
I guess he is using cmake -E tar may be using 'v' verbose option from tar should be enough. i.e. cmake -E tar xvz your-archive.tar.gz It should display file names as they come out of the archive. So unless your very big archive only contains relatively big files, the output should evolve quite

Re: [CMake] Tracking progress of CMake TAR

2018-12-17 Thread Eric Noulard
https://github.com/libarchive/libarchive/wiki/ManPageArchiveReadExtract3) but CMake code is not using it in any way. > and yes I'm using cmake -E tar .-. > > Any ideas? > Beside non-portable way no. > > On Mon, Dec 17, 2018 at 7:16 AM Eric Noulard > wrote: > >> I

Re: [CMake] Tracking progress of CMake TAR

2018-12-17 Thread Eric Noulard
n Windows. It looks like 7-zip can do that: see: https://sevenzip.osdn.jp/chm/cmdline/switches/bs.htm or: https://sourceforge.net/p/sevenzip/discussion/45797/thread/d10225f7/ I don't work on Windows those day so I won't be able to try it out. Eric > > On Mon, Dec 17, 2018 at 8:53 A

Re: [CMake] Help with non-standard use of CMake

2019-01-02 Thread Eric Noulard
Hi Kyle & Donald, ctest scripting is documented in here as well: https://cmake.org/cmake/help/v3.13/manual/ctest.1.html#ctest-script Since this is generated from in-source documentation: https://github.com/Kitware/CMake/blob/master/Help/manual/ctest.1.rst may be an explanation on how to use ctes

<    4   5   6   7   8   9   10   11   12   13   >