On Tue, 08 Nov 2011 10:03:42 +0100, Erik wrote in message <1320743022.2034.0.camel@Raptor>:
> On Mon, 2011-11-07 at 18:26 +0000, James Turner wrote: > > On 7 Nov 2011, at 17:07, Martin Spott wrote: > > > > > Ok, I conclude: "LIB_POSTFIX" im Simgear doesn't work as > > > expected ;-/ > > > > I think we have a 'thinko' in the module - looking at the code, > > we're using: > > > > install (TARGETS ${libName} ARCHIVE DESTINATION > > lib${LIB_SUFFIX}) > > > > ... my guess is if this was LIB_POSTFIX instead, it would do > > exactly what you want ... set it to '64' and simgear will install > > to lib64 > > > > But I also suspect there's a smarter, automatic way to deal with > > this by default. > > There is: > > IF(CMAKE_SIZEOF_VOID_P MATCHES "8") > SET(LIB_POSTFIX "64" CACHE STRING "suffix for 32/64 dir placement") > MARK_AS_ADVANCED(LIB_POSTFIX) > ENDIF() > IF(NOT DEFINED LIB_POSTFIX) > SET(LIB_POSTFIX "") > ENDIF() > > Erik ..and this still gives us the ability to call our binaries e.g. fgfs-w-sdl-wo-osg? -- ..med vennlig hilsen = with Kind Regards from Arnt Karlsen ...with a number of polar bear hunters in his ancestry... Scenarios always come in sets of three: best case, worst case, and just in case. ------------------------------------------------------------------------------ RSA(R) Conference 2012 Save $700 by Nov 18 Register now http://p.sf.net/sfu/rsa-sfdev2dev1 _______________________________________________ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel