Re: [CMake] Missing 'undefined dynamic_lookup' flag

2017-03-09 Thread Cedric Doucet
original - > De: "Cedric Doucet" <cedric.dou...@inria.fr> > À: cmake@cmake.org > Envoyé: Jeudi 9 Mars 2017 23:41:03 > Objet: Missing 'undefined dynamic_lookup' flag > Hello, > I am trying to find a portable way of generating modules with C

[CMake] Missing 'undefined dynamic_lookup' flag

2017-03-09 Thread Cedric Doucet
Hello, I am trying to find a portable way of generating modules with CMake. Here is a toy CMake script: --- CMAKE_MINIMUM_REQUIRED(VERSION 2.8) PROJECT(dlopen_example CXX) ADD_EXECUTABLE(main main.cpp print_ref.cpp) TARGET_LINK_LIBRARIES(main dl)

[CMake] Find packages coming from homebrew

2016-11-23 Thread Cedric Doucet
Hello, I would like to write some FindFoo.cmake files to find packages installed on different systems including Mac. I have noticed that homebrew install packages in a repertory whose name depends on the version of the package. For example, I have installed a scientific library called

[CMake] Provide configuration settings for users

2016-06-14 Thread Cedric Doucet
Hello, is there a native way to provide configuration settings for the users of a software? For example, I develop a software which depends on several 3rd party libraries which are automatically downloaded and installed with the ExternalProject module. My CMake configuration scripts are

Re: [CMake] Install from a source directory with ExternalProject

2016-02-26 Thread Cedric Doucet
original - > De: "Nicholas Braden" <nicholas11bra...@gmail.com> > À: "Cedric Doucet" <cedric.dou...@inria.fr> > Cc: cmake@cmake.org > Envoyé: Vendredi 26 Février 2016 15:56:02 > Objet: Re: [CMake] Install from a source directory with ExternalProject

Re: [CMake] Install from a source directory with ExternalProject

2016-02-26 Thread Cedric Doucet
to do it with ExternalProject_Add. Cédric - Mail original - > De: "Nicholas Braden" <nicholas11bra...@gmail.com> > À: "Cedric Doucet" <cedric.dou...@inria.fr> > Cc: cmake@cmake.org > Envoyé: Vendredi 26 Février 2016 15:40:26 > Obj

[CMake] Install from a source directory with ExternalProject

2016-02-26 Thread Cedric Doucet
Hello, I would like to know if it's possible to download and install an external project from a source directory instead of a tarball. I tried to do it with ExternalProject_Add function but it tries to uncompress source files and then fails. Cédric -- Powered by www.kitware.com Please

[CMake] Library target names and the ExternalProject_Add command

2016-01-25 Thread Cedric Doucet
Hello, I use the ExternalProject_Add command to download and build a static library called 'foo.a'. I build another library 'bar' which depends on 'foo.a'. For the moment, I use the target_link_libraries command to create a link between foo and bar: target_link_libraries(bar

[CMake] Re : Re: Re : Re: Re : Re: How to pass a configuration file to CMake?

2016-01-21 Thread Cedric Doucet
d cmake -C /path/to/SuperCoolCacheFile.cmake /path/to/source - Chuck > On Thu, Jan 21, 2016 at 10:10 AM, Cedric Doucet <cedric.dou...@inria.fr> wrote: Hi Petr, thank you very much for your answer! Indeed, comment string arguments seem to be mandatory. I modified my configuration file like this: set(E

[CMake] Re : Re: How to pass a configuration file to CMake?

2016-01-21 Thread Cedric Doucet
Make Error: The source directory "/local/cdoucet/simol/config.cmake" is a file, not a directory. Do you know how to solve this problem? - Cedric Doucet <cedric.dou...@inria.fr> a écrit : > Hi Peter! Thank you very much!It seems to be exactly what I want. :)I will try to u

[CMake] Re : Re: Re : Re: How to pass a configuration file to CMake?

2016-01-21 Thread Cedric Doucet
") set(GCC_ROOT "/local/cdoucet/gcc/4.9.2/" CACHE PATH "Path to root directory of GCC installation") Petr On Thu, Jan 21, 2016 at 3:43 PM, Cedric Doucet <cedric.dou...@inria.fr> wrote: Hello, I do not manage to pass a configuration file to cmake. I type 'cmake

Re: [CMake] Correct usage of add_library

2015-12-23 Thread Cedric Doucet
original - > De: "Sergei Nikulov" <sergey.niku...@gmail.com> > À: "Cedric Doucet" <cedric.dou...@inria.fr> > Cc: cmake@cmake.org > Envoyé: Mercredi 23 Décembre 2015 11:38:38 > Objet: Re: [CMake] Correct usage of add_library > > Hello, >

Re: [CMake] Correct usage of add_library

2015-12-23 Thread Cedric Doucet
Sorry, it was a mistake! Everything works fine! Best, Cédric - Mail original - > De: "Cedric Doucet" <cedric.dou...@inria.fr> > À: "Sergei Nikulov" <sergey.niku...@gmail.com> > Cc: cmake@cmake.org > Envoyé: Mercredi 23 Décembre 2015

[CMake] change add_executable to add_library leads to an error

2015-12-23 Thread Cedric Doucet
Hello, I have the following script: = file(GLOB_RECURSE statphys "*.cpp") #add_library(simol-statphys SHARED ${statphys}) add_executable(simol-statphys ${statphys}) add_dependencies(simol-statphys simol-core) add_custom_target(statphys

Re: [CMake] change add_executable to add_library leads to an error

2015-12-23 Thread Cedric Doucet
Hi Petr! Yes, it helps me a lot! I have tried to apply your approach and this is exactly what I want. Thank you! :) Cédric - Mail original - > De: "Petr Kmoch" <petr.km...@gmail.com> > À: "Cedric Doucet" <cedric.dou...@inria.fr> >

Re: [CMake] Correct usage of add_library

2015-12-23 Thread Cedric Doucet
Thank you very much! :) Managing modules is indeed the very next step for me! I will try that right now! Cédric - Mail original - > De: "Sergei Nikulov" <sergey.niku...@gmail.com> > À: "Cedric Doucet" <cedric.dou...@inria.fr> > Cc: cmake@cmak

[CMake] Correct usage of add_library

2015-12-23 Thread Cedric Doucet
Hello, I have a code which consist in a kernel and several independent modules which depend on this kernel. I would like to let users build the module they want by typing, for example, make module1 to build the first module. But, as this first module depends on the kernel, I need this

[CMake] How to pass a configuration file to CMake?

2015-12-21 Thread Cedric Doucet
Hello, I would like to know if it's possible to pass a configuration file to CMake. I have to pass a lot of information to CMake and the resulting command line is very long to type. Would it be possible to create a file containing all needed definitions and pass it to CMake? For exemple,

Re: [CMake] How to pass a configuration file to CMake?

2015-12-21 Thread Cedric Doucet
Hi Peter! Thank you very much! It seems to be exactly what I want. :) I will try to use it. Cédric - Mail original - > De: "Petr Kmoch" <petr.km...@gmail.com> > À: "Cedric Doucet" <cedric.dou...@inria.fr> > Cc: cmake@cmake.org > Envoyé:

[CMake] HowTo: write install_package function

2015-12-14 Thread Cedric Doucet
Hello, I would like to write a function called install_package which works like the find_package function, but for installation of external packages (thanks to ExternalProject). Thus, I would like to write modules InstallFoo.cmake so as to be able to call my function like this:

Re: [CMake] ExternalProject_Add and inheritance

2015-12-11 Thread Cedric Doucet
ngs are defined in the "classical" way). Best, Cédric - Mail original - > De: "Marc CHEVRIER" <marc.chevr...@sap.com> > À: "Cedric Doucet" <cedric.dou...@inria.fr>, cmake@cmake.org > Envoyé: Vendredi 11 Décembre 2015 08:44:38 > Obje

[CMake] ExternalProject_Add and inheritance

2015-12-10 Thread Cedric Doucet
Hello, I use the ExternalProject_Add command to manage third-party libraries. In the same time, I need to overcome some compatibility problems between GCC 4 and GCC 5 (strings are not defined in the same way in the STL). The solution I use is the one given here:

Re: [CMake] How to build cmake to have http support?

2015-11-15 Thread Cedric Doucet
openssl and telling cmake to use it, because it worked for me before. I will try again to find how I did that. Best, Cédric - Mail original - > De: "Gregor Jasny" <gja...@gmail.com> > À: cmake@cmake.org, "cedric doucet" <cedric.dou...@inria.fr> > E

Re: [CMake] How to build cmake to have http support?

2015-11-15 Thread Cedric Doucet
Yes, I finally managed to do it! :) This is exactly what I did! Thank you! - Mail original - > De: "Nicholas Braden" <nicholas11bra...@gmail.com> > À: "Cedric Doucet" <cedric.dou...@inria.fr> > Cc: cmake@cmake.org > Envoyé: Dimanche 15 Nov

[CMake] How to build cmake to have http support?

2015-11-14 Thread Cedric Doucet
Hello, I would like to build cmake on a cluster where I don't have any administrator privilege. Since I use the ExternalProject_Add command in my configuration script, I need to have https support with curl. But when one build cmake without specific option, it does not support https. I

Re: [CMake] How to build cmake to have http support?

2015-11-14 Thread Cedric Doucet
ot;Craig Scott" <audiofana...@gmail.com> > À: "Cedric Doucet" <cedric.dou...@inria.fr> > Cc: cmake@cmake.org > Envoyé: Dimanche 15 Novembre 2015 00:11:44 > Objet: [CMake] How to build cmake to have http support? > I recently went through this exact same problem

Re: [CMake] ExternalProject_Add and proxy

2015-10-21 Thread Cedric Doucet
Hello Denis! Thank you for your answer. Actually, there is no login and no password. It's an academic proxy. So the initial syntax of http_proxy should to be correct. Cédric - Mail original - > De: "D. Barbier" <bou...@gmail.com> > À: "Cedric Doucet&quo

[CMake] ExternalProject_Add and proxy

2015-10-21 Thread Cedric Doucet
Hello, I try to download a library with ExternalProject_Add. The URL is correct and the CMake script works well, except when there is a proxy to define. The URL is : http://bitbucket.org/eigen/eigen/get/3.2.4.tar.gz After having set http_proxy=http://proxy.name.fr:1234

Re: [CMake] Linking error after having found a package

2015-07-22 Thread Cedric Doucet
I'm afraid you're right. :-/ It works fine now. Thank you very much Eric! - Mail original - De: Eric Noulard eric.noul...@gmail.com À: Cedric Doucet cedric.dou...@inria.fr Cc: cmake@cmake.org Envoyé: Mercredi 22 Juillet 2015 14:31:22 Objet: Re: [CMake] Linking error after having

[CMake] Linking error after having found a package

2015-07-22 Thread Cedric Doucet
Hello, I try to use the find_package function to find BLAS and LAPACK libraries which are required in my code. To do that, I do the following: == FIND_PACKAGE(BLAS) FIND_PACKAGE(LAPACK) # I should test with BLAS_FOUND and LAPACK_FOUND here but that's not the

[CMake] Downloading several files with ExternalProject_Add

2015-07-07 Thread Cedric Doucet
Hello! I would like to download and compile a pair of C files (foo.h, foo.c) thanks to the ExternalProject_Add function. However, only one URL can be provided. What is the cleanest way to handle such a case? Cheers, Cédric -- Powered by www.kitware.com Please keep messages on-topic

[CMake] Automatic management of Eclipse projects

2015-06-22 Thread Cedric Doucet
Hello, I am testing the possibility of generating Eclipse projects with CMake. I use the following command line: cmake -GEclipse CDT4 - Unix Makefiles -D CMAKE_BUILD_TYPE=Debug ../src It works fine. However, I would like to go further in this direction. - What could I put in

[CMake] Can't cd to DOWNLOAD_DIR

2015-06-01 Thread Cedric Doucet
Hello, in the ExternalProject_add function, I would like to access to DOWNLOAD_DIR to download a patch (for ARPACK). So, I define my patch command like this: == PATCH_COMMAND cd DOWNLOAD_DIR wget /myurl/mypatch.tar.gz cd SOURCE_DIR tar

Re: [CMake] How to skip steps and use default values in ExternalProject_Add command?

2015-05-21 Thread Cedric Doucet
Thank you very much for your help, Petr! I will try it! Cheers, Cédric - Mail original - De: Petr Kmoch petr.km...@gmail.com À: Cedric Doucet cedric.dou...@inria.fr Cc: cmake@cmake.org Envoyé: Jeudi 21 Mai 2015 14:21:48 Objet: Re: [CMake] How to skip steps and use default values

[CMake] How to skip steps and use default values in ExternalProject_Add command?

2015-05-21 Thread Cedric Doucet
Hello, I would like to loop on a list of libraries to download and install, by calling the ExternalProject_Add command for each of these libraries. To do that, I need to define some commands for each library, like CONFIGURE_COMMAND, BUILD_COMMAND and INSTALL_COMMAND. These commands may

[CMake] File organization and the essence of modules

2015-05-20 Thread Cedric Doucet
Hello, I wonder how I should organize cmake files in my project. For the moment, I have organized my project like this: == project/ CMakeLists.txt cmake/ modules/ FindLibrary.cmake MyFunction.cmake src/ CMakeLists.txt == If I keep on

[CMake] Passing arguments to functions

2015-05-20 Thread Cedric Doucet
Hello, I try to wrote a function DownloadThenInstall which calls the ExternalProject_Add function after havind defined useful variables like prefix, download_dir, etc. I would like to call it like this DownloadThenInstall(Eigen) to download and install the Eigen library (for example).

Re: [CMake] How URL_MD5 is computed in ExternalProject_Add?

2015-05-19 Thread Cedric Doucet
: Cedric Doucet cedric.dou...@inria.fr À: cmake@cmake.org Envoyé: Mardi 19 Mai 2015 12:37:03 Objet: [CMake] How URL_MD5 is computed in ExternalProject_Add? Hello, I use the URL_MD5 variable to avoid downloading more than once a library with the ExternalProject_Add command. However, I don't manage

[CMake] How URL_MD5 is computed in ExternalProject_Add?

2015-05-19 Thread Cedric Doucet
Hello, I use the URL_MD5 variable to avoid downloading more than once a library with the ExternalProject_Add command. However, I don't manage to get the same MD5 code as CMake when I try to get one with generators available on the internet. How could I get the same one for an URL written in

Re: [CMake] How URL_MD5 is computed in ExternalProject_Add?

2015-05-19 Thread Cedric Doucet
... And thank you very much for your help Marc! :) - Mail original - De: Cedric Doucet cedric.dou...@inria.fr À: David Cole dlrd...@aol.com Cc: cmake@cmake.org Envoyé: Mardi 19 Mai 2015 15:38:49 Objet: Re: [CMake] How URL_MD5 is computed in ExternalProject_Add? Hello David

Re: [CMake] How URL_MD5 is computed in ExternalProject_Add?

2015-05-19 Thread Cedric Doucet
original - De: David Cole dlrd...@aol.com À: Marc CHEVRIER marc.chevr...@sap.com Cc: Cedric Doucet cedric.dou...@inria.fr, cmake@cmake.org Envoyé: Mardi 19 Mai 2015 15:04:58 Objet: Re: [CMake] How URL_MD5 is computed in ExternalProject_Add? The point of specifying URL_MD5

[CMake] Is it possible to define a custom help message?

2015-05-18 Thread Cedric Doucet
Hello, when one types 'cmake -help', one gets a message containing a summary of all available options to the cmake command. Is it possible to customize this message, so as to print a description of all useful variables and all options defined by the option command? Thank you for your help!

Re: [CMake] Unknown argument in FOREACH

2015-05-18 Thread Cedric Doucet
. Of course, after some tests, your solution works fine! :) Cédric - Mail original - De: Petr Kmoch petr.km...@gmail.com À: Cedric Doucet cedric.dou...@inria.fr Cc: cmake@cmake.org Envoyé: Lundi 18 Mai 2015 18:16:16 Objet: Re: [CMake] Unknown argument in FOREACH Hi Cedric. If you check

[CMake] Unknown argument in FOREACH

2015-05-18 Thread Cedric Doucet
Hello, I try to write a loop to donwload and install libraries whose name is contained in a list. I wrote these lines from the 45th line of my CMakeLists.txt file: === set(LIBRARIES_TO_DOWNLOAD EIGEN) foreach(LIBRARY IN

[CMake] What is the correct way to manage a possibly user-defined directory?

2015-05-18 Thread Cedric Doucet
Hello, I would like to let users choose between providing third party libraries or let CMake download them. To do that, I try to write a simple code like this to manage a third party library FOO of an executable MY_EXEC: = IF(NOT EXISTS

Re: [CMake] What is the correct way to manage a possibly user-defined directory?

2015-05-18 Thread Cedric Doucet
- De: Cedric Doucet cedric.dou...@inria.fr À: cmake@cmake.org Envoyé: Lundi 18 Mai 2015 11:48:52 Objet: [CMake] What is the correct way to manage a possibly user-defined directory? Hello, I would like to let users choose between providing third party libraries or let CMake download

Re: [CMake] What is the correct way to manage a possibly user-defined directory?

2015-05-18 Thread Cedric Doucet
here) This will create a path selector widget in CMake UI, with Provide path to FOO library here serving as its tooltip/documentation. Petr On Mon, May 18, 2015 at 11:48 AM, Cedric Doucet cedric.dou...@inria.fr wrote: Hello, I would like to let users choose between providing third

[CMake] Correct usage of the find_path command

2015-05-06 Thread Cedric Doucet
Hello, I try to create my first FindXXX.cmake and use find_package inside. My goal is to check that a repository exists: it's always the same because it come from the ExternalProject_add command. However, I don't manage to write a first very simple version. I can't find the path I want. I

Re: [CMake] Set Fortran compiler in CMakeLists.txt?

2015-04-30 Thread Cedric Doucet
Hello, you should try to put set(FC /my/path/to/binaries/of/my/fortran/compiler/gfortran) in your CMakeLists.txt. Of course, you may replace gfortran by the compiler you want to use. Cédric - Mail original - De: Nikolaus Rath nr...@trialphaenergy.com À: cmake@cmake.org Envoyé:

Re: [CMake] ExternalProject: how to avoid reinstalling after 'make clean'?

2015-04-28 Thread Cedric Doucet
Hello! No one knows how to avoid spurious installations with external projects? Thank you, Cédric - Mail original - De: Cedric Doucet cedric.dou...@inria.fr À: cmake@cmake.org Envoyé: Vendredi 24 Avril 2015 11:35:54 Objet: ExternalProject: how to avoid reinstalling after 'make

[CMake] ExternalProject: how to avoid reinstalling after 'make clean'?

2015-04-24 Thread Cedric Doucet
Hello, I use the ExternalProjet_Add function to download and install third-party libraries. Here is an example of a CMakeLists file containing such a call: = cmake_minimum_required (VERSION 2.6) project (example CXX) set(CMAKE_VERBOSE_MAKEFILE ON)

Re: [CMake] Don't download external projects again after calling make clean

2015-04-23 Thread Cedric Doucet
/build » make[1]: *** [CMakeFiles/eigen.dir/all] Erreur 2 make[1]: quittant le répertoire « /home/cdoucet/Documents/exemples/cmake/external_project/eigen/build » make: *** [all] Erreur 2 = - Mail original - De: David Cole dlrd...@aol.com À: Cedric Doucet cedric.dou

Re: [CMake] Don't download external projects again after calling make clean

2015-04-23 Thread Cedric Doucet
libraries. By 'simple', I mean users/developpers may just have to type the classical combo 'cmake/make/make install' to use the code. They are not expected to download and install anything by themselves. Cédric - Mail original - De: Cedric Doucet cedric.dou...@inria.fr À: cmake

Re: [CMake] Don't download external projects again after calling make clean

2015-04-23 Thread Cedric Doucet
original - De: Cedric Doucet cedric.dou...@inria.fr À: cmake@cmake.org Envoyé: Jeudi 23 Avril 2015 14:14:59 Objet: Re: [CMake] Don't download external projects again after calling make clean Does the extracted eigen source tree look like it's a proper un-tarred eigen source

Re: [CMake] Do build after GIT_TAG changed in ExternalProject_Add

2015-04-23 Thread Cedric Doucet
I don't know why but providing my own STAMP_DIR seems to solve the problem: STAMP_DIR ${EXTERNAL_DIR}/eigen/stamp Hope it helps! Cédric - Mail original - De: David Cole via CMake cmake@cmake.org À: typ1232 dummdoof-d...@web.de Cc: cmake@cmake.org Envoyé: Jeudi 23 Avril 2015

Re: [CMake] Don't download external projects again after calling make clean

2015-04-23 Thread Cedric Doucet
I don't know why but providing my own STAMP_DIR seems to solve the problem: STAMP_DIR ${EXTERNAL_DIR}/eigen/stamp Hope it helps! Cédric - Mail original - De: David Cole dlrd...@aol.com À: Cedric Doucet cedric.dou...@inria.fr Cc: cmake@cmake.org Envoyé: Jeudi 23 Avril 2015 13:56

Re: [CMake] Don't download external projects again after calling make clean

2015-04-23 Thread Cedric Doucet
/external_project/eigen/build » make[1]: *** [CMakeFiles/eigen.dir/all] Erreur 2 make[1]: quittant le répertoire « /home/cdoucet/Documents/exemples/cmake/external_project/eigen/build » make: *** [all] Erreur 2 = - Mail original - De: David Cole dlrd...@aol.com À: Cedric Doucet

Re: [CMake] Do build after GIT_TAG changed in ExternalProject_Add

2015-04-23 Thread Cedric Doucet
Yes, I am really sorry for the noise! :-/ - Mail original - De: David Cole dlrd...@aol.com À: Cedric Doucet cedric.dou...@inria.fr Cc: typ1232 dummdoof-d...@web.de, cmake@cmake.org Envoyé: Jeudi 23 Avril 2015 13:58:27 Objet: Re: [CMake] Do build after GIT_TAG changed

Re: [CMake] Don't download external projects again after calling make clean

2015-04-18 Thread Cedric Doucet
...@aol.com À: Cedric Doucet cedric.dou...@inria.fr Cc: cmake@cmake.org Envoyé: Vendredi 17 Avril 2015 13:21:08 Objet: Re: [CMake] Don't download external projects again after calling make clean Eliminate your DOWNLOAD_COMMAND. CMake knows how to do it with just the URL_MD5, DOWNLOAD_DIR

Re: [CMake] Don't download external projects again after calling make clean

2015-04-18 Thread Cedric Doucet
Ok it seems the answer to my problem is here: http://www.cmake.org/pipermail/cmake/2010-December/041295.html I will try it. - Mail original - De: Cedric Doucet cedric.dou...@inria.fr À: cmake@cmake.org Envoyé: Samedi 18 Avril 2015 13:38:31 Objet: Re: [CMake] Don't download external

Re: [CMake] Don't download external projects again after calling make clean

2015-04-18 Thread Cedric Doucet
previous of curl and libcurl but it does not change anything. Could you help me? Cédric - Mail original - De: Cedric Doucet cedric.dou...@inria.fr À: David Cole dlrd...@aol.com Cc: cmake@cmake.org Envoyé: Samedi 18 Avril 2015 13:00:28 Objet: Re: [CMake] Don't download external

Re: [CMake] Don't download external projects again after calling make clean

2015-04-16 Thread Cedric Doucet
CONFIGURE_COMMAND cd BINARY_DIR cmake -D CMAKE_INSTALL_PREFIX=$INSTALL_DIR SOURCE_DIR ) -- - Mail original - De: David Cole dlrd...@aol.com À: Cedric Doucet cedric.dou

[CMake] Don't download external projects again after calling make clean

2015-04-13 Thread Cedric Doucet
Hello! I use the ExternalProject_Add function to download third-party libraries of a code. Once a library has been downloaded, I can call make as many times as I want without downloading this library again. It seems that CMake detects that the library has already been downloaded.

Re: [CMake] What is the purpose of INSTALL_DIR in ExternalProject_Add command?

2015-04-09 Thread Cedric Doucet
configure step, you'll have to call that and pass in INSTALL_DIR as an argument. HTH, David C. On Thursday, April 9, 2015, Cedric Doucet cedric.dou...@inria.fr wrote: Hello! I try to download, extract, configure, build and install a library with CMake. My CMakeLists.txt

[CMake] What is the purpose of INSTALL_DIR in ExternalProject_Add command?

2015-04-09 Thread Cedric Doucet
Hello! I try to download, extract, configure, build and install a library with CMake. My CMakeLists.txt contains the following lines: cmake_minimum_required (VERSION 2.6) project (example CXX) set(CMAKE_VERBOSE_MAKEFILE ON) include(ExternalProject) include(ProcessorCount) ProcessorCount(N)

Re: [CMake] What is the purpose of INSTALL_DIR in ExternalProject_Add command?

2015-04-09 Thread Cedric Doucet
Hello Theodore, thank you for your help. Well, indeed it greatly depends on the system and the user. Neverteless, you can alaways provide your own value of CONFIGURATION_COMMAND to install your libraries in the same directory or in different ones. It does not depend on INSTALL_DIR at all. You

Re: [CMake] What is the purpose of INSTALL_DIR in ExternalProject_Add command?

2015-04-09 Thread Cedric Doucet
Pavlik ryan.pav...@gmail.com À: Cedric Doucet cedric.dou...@inria.fr, Iosif Neitzke iosif.neitzke+cm...@gmail.com Cc: cmake@cmake.org Envoyé: Jeudi 9 Avril 2015 13:26:01 Objet: Re: [CMake] What is the purpose of INSTALL_DIR in ExternalProject_Add command? It's for if your use case requires

[CMake] How do one manage external projects in a clean way?

2015-03-17 Thread Cedric Doucet
Hello! I would like to manage external libraries called in my code. My goal is to let users install these libraries by themselves or let CMake download and install these libraries for them. For the moment, I use External_project_add command to download external libraries. This works good

Re: [CMake] Add -lrt at the end of link.txt

2014-01-08 Thread Cedric Doucet
Thank you very much for your help. Actually, there are two CMakeLists.txt files in the project I work on. Targets are only defined in one of them. This is the reason why I did not find them. It works fine now! Best regards, Cédric Doucet - Mail original - De: Rolf Eike Beer

[CMake] Add -lrt at the end of link.txt

2014-01-07 Thread Cedric Doucet
He llo, I would like to know how to add -lrt at the end of link.txt. I tried to do that by modifying CMakeLists.txt. I added the following lines: list(APPEND CMAKE_CXX_FLAGS

Re: [CMake] Add -lrt at the end of link.txt

2014-01-07 Thread Cedric Doucet
Objet: Re: [CMake] Add -lrt at the end of link.txt Am 07.01.2014 12:56, schrieb Cedric Doucet: He llo, I would like to know how to add -lrt at the end of link.txt. I tried to do that by modifying CMakeLists.txt. I added the following lines