Re: [CMake] using find_library with a ExternalProject

2012-10-22 Thread Bill Hoffman
On 10/22/2012 12:34 PM, Ian Monroe wrote: So what was the target use-case for ExternalProject? From the name it sounds like it was meant exactly for making your non-external project (aka your project) be able to pull in dependencies from external projects. The target use case was to create a simp

Re: [CMake] using find_library with a ExternalProject

2012-10-22 Thread Ian Monroe
On Mon, Oct 22, 2012 at 6:07 AM, Bill Hoffman wrote: > On 10/21/2012 10:20 PM, Ian Monroe wrote: >> >> So I had code like: >> include(ExternalProject) >> ExternalProject_Add( >> mockcpp >> DOWNLOAD_COMMAND hg clonessh://h...@bitbucket.org/godsme/mockcpp >> >> CMAKE_ARGS -DCMAKE_INSTALL

Re: [CMake] using find_library with a ExternalProject

2012-10-22 Thread Bill Hoffman
On 10/21/2012 10:20 PM, Ian Monroe wrote: So I had code like: include(ExternalProject) ExternalProject_Add( mockcpp DOWNLOAD_COMMAND hg clonessh://h...@bitbucket.org/godsme/mockcpp CMAKE_ARGS -DCMAKE_INSTALL_PREFIX=${MOCKCPP_PREFIX} UPDATE_COMMAND hg pull ) find_library(MOCKCPP

[CMake] using find_library with a ExternalProject

2012-10-21 Thread Ian Monroe
So I had code like: include(ExternalProject) ExternalProject_Add( mockcpp DOWNLOAD_COMMAND hg clone ssh://h...@bitbucket.org/godsme/mockcpp CMAKE_ARGS -DCMAKE_INSTALL_PREFIX=${MOCKCPP_PREFIX} UPDATE_COMMAND hg pull ) find_library(MOCKCPP_LIBRARY NAMES