Re: [CMake] Why does ExternalProject require root access?

2013-01-21 Thread Luigi Calori
I' m not sure of which are exactly your problems but I probably had similar ones: I use to have a meta-project which assembles all the needed external project set up to download,configure,build and install. I setup for all the project the same CMAKE_INSTALL_PREFIX and the same CMAKE_PREFIX_PATH

Re: [CMake] Why does ExternalProject require root access?

2013-01-21 Thread Theodore Papadopoulo
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 01/20/2013 10:54 PM, Eric Noulard wrote: > > > 2013/1/20 Ansis Māliņš > > > The line ExternalProject_Add(bullet PREFIX ${PROJECT_SOURCE_DIR}) > fails with Install the project... -- Install configuration: > "Releas

Re: [CMake] Why does ExternalProject require root access?

2013-01-20 Thread Eric Noulard
2013/1/21 Ansis Māliņš > > I don't really know but your ExternalProject_Add( looks strange? > Changing PROJECT_*_DIR to CMAKE_*_DIR doesn't help. Neither does setting > directories directly instead of setting PREFIX. > I think I wasn't clear. I supposed that your CMakeLists.txt was taken from y

Re: [CMake] Why does ExternalProject require root access?

2013-01-20 Thread Ansis Māliņš
There is no Bullet package for Ubuntu. But most importantly there is no such thing as packages in Windows. So I have to build it into my app. I also want to avoid having to alter the CMake files of my dependencies. I want other devs to be able to just check out the latest version of Bullet into a

Re: [CMake] Why does ExternalProject require root access?

2013-01-20 Thread Nick Overdijk
You don't use find_package when add_subdirectory, just target_link_library(). 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 repos

Re: [CMake] Why does ExternalProject require root access?

2013-01-20 Thread Ansis Māliņš
> 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 alread

Re: [CMake] Why does ExternalProject require root access?

2013-01-20 Thread Eric Noulard
2013/1/20 Ansis Māliņš > The line > ExternalProject_Add(bullet PREFIX ${PROJECT_SOURCE_DIR}) > fails with > Install the project... > -- Install configuration: "Release" > CMake Error at cmake_install.cmake:38 (FILE): > file cannot create directory: /usr/local/lib/pkgconfig. Maybe need > admi

Re: [CMake] Why does ExternalProject require root access?

2013-01-20 Thread Nick Overdijk
I use add_subdirectory to add bullet and sdl.. Could you try that? I've never worked with ExternalProject_Add and wouldn't really know what it does. On 2013-20-01, at 22:26:44 , Ansis Māliņš wrote: > The line > ExternalProject_Add(bullet PREFIX ${PROJECT_SOURCE_DIR}) > fails with > Install the p

[CMake] Why does ExternalProject require root access?

2013-01-20 Thread Ansis Māliņš
The line ExternalProject_Add(bullet PREFIX ${PROJECT_SOURCE_DIR}) fails with Install the project... -- Install configuration: "Release" CMake Error at cmake_install.cmake:38 (FILE): file cannot create directory: /usr/local/lib/pkgconfig. Maybe need administrative privileges. Why? How do I avo