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

2015-04-09 Thread David Cole via CMake
You need to tell eigen where to install, probably as an argument to its configure step. If it builds with CMake, you can use: -DCMAKE_INSTALL_PREFIX=INSTALL_DIR as one of the CMake args. If it has a non-CMake configure step, you'll have to call that and pass in INSTALL_DIR as an argument.

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

2015-04-09 Thread Cedric Doucet
Hello Iosif and David, thank you for your answer. I now understand how it works. But I still don't understand the purpose of INSTALL_DIR. Do you know an example when this variable is useful? Cédric - Mail original - De: Iosif Neitzke iosif.neitzke+cm...@gmail.com À:

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

2015-04-09 Thread Ryan Pavlik
It's for if your use case requires the project to be installed in a specific location that's not the automatically generated one. For instance, if you're building multiple external projects you might have them all install to the same subdirectory of the binary directory for convenience. Ryan On

[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 Iosif Neitzke
Install Step The INSTALL_DIR is underneath the calling project’s binary directory. Use INSTALL_DIR to specify a different location. Note that in addition to setting INSTALL_DIR, you also have to pass -DCMAKE_INSTALL_PREFIX or --prefix to the CMake or configure command. It is not used automatically

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

2015-04-09 Thread Theodore Papadopoulo
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 04/09/2015 01:26 PM, Ryan Pavlik wrote: It's for if your use case requires the project to be installed in a specific location that's not the automatically generated one. For instance, if you're building multiple external projects you might have

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
Hello Ryan, thank you for your answer. If I understand it well, this exactly what I want. I want third-party libraries to be installed in a specific location which does not correspond to the automatically generated one. To do that, I can provide my own configuration command to install in