Hi,
I’m using ExternalProject, but the documentation does not really reflect what I
am witnessing
I have a Project X which is included through ExternalProject in Project A
Project X has no PREFIX set in its CMakeLists
I include project X like this:
include(ExternalProject)
If x is a CMake-driven project, you'll also need to explicitly set
CMAKE_INSTALL_PREFIX when configuring. If not, there's likely a
--prefix arg for configuring... One of those also has to be set to
install to a non-default location.
The PREFIX arg for ExternalProject is only used to organize
See, for example:
https://github.com/OpenChemistry/openchemistry/blob/master/CMakeLists.txt#L24
A common CMAKE_INSTALL_PREFIX is used for all OpenChemistry
ExternalProject builds that are driven by CMake.
--
Powered by www.kitware.com
Please keep messages on-topic and check the CMake FAQ
I see thanks, so install_dir has a different meaning than the eventual install
dir of the external project, I thought there would be some ‘magic’ where the
ExternalProject functions would override the the prefix of, in this case,
project x.
I still have one issue, perhaps I should start a new
If project Y needs to link to project X, you could build project Y with
ExternalProject_Add and list project X in the DEPENDS parameter.
http://www.cmake.org/cmake/help/v3.0/module/ExternalProject.html
On Wed, Aug 13, 2014 at 9:39 AM, Hans van den Bogert hansbog...@gmail.com
wrote:
I see