On Tuesday, 11. October 2011 14:40:36 xantares 09 wrote: > Currently the build system forces the library path to be lib64 on x86_64 > arch except for mac: if(NOT APPLE) > # Create suffix to eventually install in lib64 > if(CMAKE_SIZEOF_VOID_P EQUAL 4) > SET(LIB_SUFFIX "") > SET(PACK_ARCH "") > else(CMAKE_SIZEOF_VOID_P EQUAL 8) > SET(LIB_SUFFIX 64) > SET(PACK_ARCH .x86_64) > endif(CMAKE_SIZEOF_VOID_P EQUAL 4) > else(NOT APPLE) > SET(LIB_SUFFIX "") > SET(PACK_ARCH "") > endif(NOT APPLE) > > However some distro do not use this library suffix, like all the > debian-based ones. > > Usually it is the packagers job to decide whether it will install in lib > or lib64 through the macro %cmake defined in rpm systems which passes > -DLIB_SUFFIX=64 on x86_64 systems > > There are two options to allow to install the library in the right place > in every case: - do not try to set LIB_SUFFIX automatically > - provide an option to disable the automatic setting of LIB_SUFFIX > depending on CMAKE_SIZEOF_VOID_P > > I would go for the first one as it's the most simple (no more need for an > APPLE switch) ; just remove all the SET(LIB_SUFFIX...) lines, it will be > automatically read as "" (empty)
Uwe, if I recall correctly you added these lines (correct me if I'm wrong ;)) Do you still need them? Cheers, Thomas -- libftdi - see http://www.intra2net.com/en/developer/libftdi for details. To unsubscribe send a mail to [email protected]
