[CMake] Why does ExternalProject require root access?

Ansis Māliņš ansis.malins at gmail.com
Sun Jan 20 16:26:44 EST 2013


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 avoid needing root for building my project?

What I'm trying to do: Build several projects (bullet, ogre, btogre, sdl,
mygame) into one thing. ExternalProject seems like the correct way to do
that.

Lubuntu Linux 12.04
CMake 2.8.7
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20130120/4d9fca1e/attachment.htm>


More information about the CMake mailing list