On Monday 09 July 2007 08:10, Mathias Froehlich wrote: > Hi, > > I need to do no default binary type builds with a cmake based build system > (OpenSceneGraph's cmake build system). > With non default binary type, I am talking about 64 bit builds on hp-ux or > sparc solaris for example. > On hp-ux I have 64 bit libs in .../lib/pa20_64 or on sparc solaris they are > located in .../lib/sparcv9 instead of the usual .../lib directory. > > The first problem that bites me is the FindOpenGL.cmake module. > On hp-ux it will find the /opt/graphics/lib/libGL.sl hppa1.1 32 bit library > (note that the 64 bit hppa2.0 library is available > in /opt/graphics/lib/pa20_64/libGL.sl). My object files are compiled with > CMAKE_CFLAGS='+DA2.0 ...' which will tell the compiler that it should build > hppa2.0 64 bit objects. > > At link time the cmake based gnu makefiles will try to glue the 64 bit > objects to the 32 bit libGL. Obviously this will not work. > > Now my question: > How can I make cmake look into the lib/pa20_64 or lib/sparcv9 directory > instead of the plain lib directory?
So the problem is that it picks up not the libraries you want, because they are in a special directory ? Everything else (include dirs etc.) is correct ? You could set the CMAKE_LIBRARY_PATH cmake/environment variable to point the lib/pa20_64 and lib/sparcv9 directories to get it working. Bye Alex _______________________________________________ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake