[reporter="corristo", created="Sun, 15 Sep 2013 16:04:02 +0200"]
I'm building Ogre using following cmake call:
#!/bin/sh cmake \ -D CMAKE_C_COMPILER=/usr/bin/clang \ -D CMAKE_CXX_COMPILER=/usr/bin/clang++ \ -D CMAKE_OSX_ARCHITECTURES="x86_64" \ -D OGRE_BUILD_SAMPLES=FALSE \ -D OGRE_BUILD_TOOLS=FALSE \ -D CMAKE_BUILD_TYPE=Release \ -D CMAKE_INSTALL_PREFIX=/usr/local/Cellar/Ogre/1.9.0-unstable \ ..
Build dir is located inside source dir.
As you can see from screenshot I got two distinct Ogre.framework copies. But one has headers that other doesn't. It gets even worse after doing "make install", only one instance of Ogre.framework got copied to install prefix.
Also, why there's "macosx" intermediate folder in $build/lib? It can confuse some cmake scripts that assume that libs must be right under lib. It's especially important when installing Ogre in /usr/local (i.e. system-wide) for example. /usr/local/lib/macosx/Release just isn't right path for libraries =\
I'm using revision 4ddd8edfc4f25b72b674f520bbcc1358f54b8c6d
该提问来源于开源项目:OGRECave/ogre