[CMake] Why does ExternalProject require root access?
Nick Overdijk
nick at astrant.net
Sun Jan 20 17:50:12 EST 2013
You don't use find_package when add_subdirectory, just target_link_library(<target name by Bullet>).
I'm not sure if this is frowned upon or not, but it does work, and shouldn't change that often or anything. Strictly speaking it's a bit dirty though.
Thing is, why is bullet build by you? Do you need it in this repository, and to be build by your root cmake? If not, just build it, install it, and use find_package. It's a lot cleaner.
On 2013-20-01, at 23:33:05 , Ansis Māliņš wrote:
> > I use add_subdirectory to add bullet and sdl.. Could you try that?
> That's what I tried initially, but another external project dependent on Bullet, btOgre, failed to find_package(Bullet). I think it's because when CMake configures btOgre it expects Bullet binaries to be built and installed already.
> --
>
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.cmake.org/mailman/listinfo/cmake
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20130120/e64a5539/attachment.htm>
More information about the CMake
mailing list