Install in custom dir: Workaround on OSX 10.7

senseiwa
Posts: 1
Joined: Fri Feb 24, 2012 12:14 pm

Install in custom dir: Workaround on OSX 10.7

Post by senseiwa »

Dear all,

I am installing (via ccmake) bullet on OS X with Xcode 4.3. I don't want to mess around my system, so every library I build from scratch must be installed in a custom directory (my Applications directory in my home).

After correctly setting up the SDK (Xcode 4.3 is a bundle, and no /Developer is there anymore!), I can build bullet. However, it keeps trying to install itself in /usr/local after setting up CMAKE_INSTALL_PREFIX, INCLUDE_INSTALL_DIR, and LIB_DESTINATION (the last two are usually not needed, but whatever).

I found a workaround, though. You need to set the PKGCONFIG_INSTALL_PREFIX variable, and if you use ccmake you need to press 't' to toggle the advanced options.

This is the first library ever that gives me such problem, is it possible to avoid this fix?

Happy coding!