This should make the prefix available in the interface under advanced
options
SET(LIB_POSTFIX "" CACHE STRING "suffix for 32/64 dir placement")
MARK_AS_ADVANCED(LIB_POSTFIX)
hope it helps (not tested)
Luigi
Robert Osfield wrote:
Hi Martin,
On 5/3/07, *Martin Spott* <[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]>> wrote:
Here on an IRIX system that has N32 as well as N64 libraries
available,
I have to modify the following files during build and replace "lib64"
with "lib32" while building OSG for N32:
./src/osgPlugins/freetype/CMakeFiles/osgdb_freetype.dir/link.txt
./src/osgPlugins/freetype/CMakeFiles/osgdb_freetype.dir/relink.txt
./src/osgPlugins/gif/CMakeFiles/osgdb_gif.dir/link.txt
./src/osgPlugins/gif/CMakeFiles/osgdb_gif.dir/relink.txt
These files are automatically generated by CMake, so the fix really
needs to be at a high level. The postfix of 64 to lib is setup in the
topmost CMakeLists.txt, the relevant section reads:
SET(LIB_POSTFIX "")
IF(UNIX AND NOT WIN32 AND NOT APPLE)
IF(CMAKE_SIZEOF_VOID_P MATCHES "8")
SET(LIB_POSTFIX "64")
ENDIF(CMAKE_SIZEOF_VOID_P MATCHES "8")
ENDIF(UNIX AND NOT WIN32 AND NOT APPLE)
Clearly we'll need to offer up a user option to select 32 or 64 bit
build, and leave the the autodetection code to provide the default
value. Perhaps the CMake guru's can suggest an appropriate tweak.
Robert.
------------------------------------------------------------------------
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/