Hi,

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)

Regards



> From: [email protected]
> To: [email protected]
> Subject: Re: Python wrapper installation path
> Date: Tue, 11 Oct 2011 10:46:08 +0200
> CC: [email protected]
> 
> On Tuesday, 11. October 2011 10:28:21 xantares 09 wrote:
> > Yep :]
> 
> Applied. Thanks.
> 
> Thomas
> 
> --
> libftdi - see http://www.intra2net.com/en/developer/libftdi for details.
> To unsubscribe send a mail to [email protected]   
> 
                                          

--
libftdi - see http://www.intra2net.com/en/developer/libftdi for details.
To unsubscribe send a mail to [email protected]   

Reply via email to