[CMake] Tell find_package to look only for 32bit libs (or specify the exact location)

Nils nils.bruenggel at stud.hslu.ch
Wed Aug 18 03:49:45 EDT 2010


Hi

I have to build my program 32bit on my Mac running OSX 10.6. I use
find_package to find gtest, however it always finds the 64bit lib
installed in /usr/local instead of the 32bit lib installed in
$HOME/Develop/gtest32 even if I adjust the path later in cmake-gui!

So now my questions.

1. Is there a way to tell find_package to only look for 32bit libs?
2. Is there a way to tell find_package to look only in a specific path?

Moreover I don't understand where OSX stores 32bit compatibility
libraries, but this is more a mac related question.

Nils


More information about the CMake mailing list