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 ------------------------------------------------------------------------------ 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