> Date: Sat, 24 Dec 2011 21:02:59 +0800
> Subject: Re: mac osx build of libftdi
> From: [email protected]
> To: [email protected]
> 
> On Sat, Dec 24, 2011 at 6:00 PM, xantares 09 <[email protected]> wrote:
> >>BTW, I am not so sure if /usr/local/lib64 is the
> >>proper place to install the libraries. MacPorts
> >>and Apple's libraries (32/64bit universal or
> >>64bit only) are located in /opt/local/lib
> >>and /usr/lib, not /opt/local/lib64 or /usr/lib64.
> >>
> >>I am wondering if lib64 needs to be changed to lib.
> >
> > I may be responsible for this mistake in the libsuffix patch posted few
> > weeks ago
> > Here is a patch :
> >
> > index c6a823f..67f0c22 100644
> > --- a/CMakeLists.txt
> > +++ b/CMakeLists.txt
> > @@ -43,14 +43,14 @@ set(CPACK_COMPONENT_SHAREDLIBS_GROUP "Development")
> >  set(CPACK_COMPONENT_STATICLIBS_GROUP "Development")
> >  set(CPACK_COMPONENT_HEADERS_GROUP    "Development")
> >
> > -if(UNIX AND NOT CMAKE_CROSSCOMPILING AND NOT EXISTS "/etc/debian_version")
> > -  if(CMAKE_SIZEOF_VOID_P EQUAL 8 AND NOT LIB_SUFFIX)
> > -    set(LIB_SUFFIX "64")
> > -  endif()
> > -endif()
> > +# automatically set lib suffix
> > +if ( UNIX AND NOT APPLE AND NOT CMAKE_CROSSCOMPILING AND NOT EXISTS
> > "/etc/debian_version" )
> > +  if ( CMAKE_SIZEOF_VOID_P EQUAL 8 AND NOT LIB_SUFFIX )
> > +    set ( LIB_SUFFIX 64 )
> > +  endif ()
> > +endif ()
> >
> >  if(NOT APPLE)
> > -  # Create suffix to eventually install in lib64
> >    if(CMAKE_SIZEOF_VOID_P EQUAL 4)
> >        SET(PACK_ARCH "")
> >      else(CMAKE_SIZEOF_VOID_P EQUAL 8)
> >
> 
> Thanks. This patch works.
> 
> ... ( I tested with a different prefix).
> Install the project...
> -- Install configuration: "Release"
> -- Installing: /Users/xiaofanc/mylocal/lib/pkgconfig/libftdi.pc
> -- Installing: /Users/xiaofanc/mylocal/lib/pkgconfig/libftdipp.pc
> -- Installing: /Users/xiaofanc/mylocal/bin/libftdi-config
> -- Installing: /Users/xiaofanc/mylocal/lib/libftdi.1.99.0.dylib
> -- Installing: /Users/xiaofanc/mylocal/lib/libftdi.1.dylib
> -- Installing: /Users/xiaofanc/mylocal/lib/libftdi.dylib
> -- Installing: /Users/xiaofanc/mylocal/lib/libftdi.a
> -- Installing: /Users/xiaofanc/mylocal/include/libftdi/ftdi.h
> -- Installing: /Users/xiaofanc/mylocal/lib/libftdipp.1.99.0.dylib
> -- Installing: /Users/xiaofanc/mylocal/lib/libftdipp.1.dylib
> -- Installing: /Users/xiaofanc/mylocal/lib/libftdipp.dylib
> -- Installing: /Users/xiaofanc/mylocal/lib/libftdipp.a
> -- Installing: /Users/xiaofanc/mylocal/include/libftdi/ftdi.hpp
> -- Installing: /Users/xiaofanc/mylocal/lib/python2.7/site-packages/_ftdi.so
> -- Installing: /Users/xiaofanc/mylocal/lib/python2.7/site-packages/ftdi.py
> ...
> 
> -- 
> Xiaofan
> 
> --
> libftdi - see http://www.intra2net.com/en/developer/libftdi for details.
> To unsubscribe send a mail to [email protected]   
> 


Hi,

In fact the patch was meant for the integrator of libftdi.
In the mean time you can always override the suffix by passing -DLIB_SUFFIX="" 
to cmake.

x.


                                          

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

diff --git a/CMakeLists.txt b/CMakeLists.txt
index c6a823f..67f0c22 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -43,14 +43,14 @@ set(CPACK_COMPONENT_SHAREDLIBS_GROUP "Development")
 set(CPACK_COMPONENT_STATICLIBS_GROUP "Development")
 set(CPACK_COMPONENT_HEADERS_GROUP    "Development")
 
-if(UNIX AND NOT CMAKE_CROSSCOMPILING AND NOT EXISTS "/etc/debian_version")
-  if(CMAKE_SIZEOF_VOID_P EQUAL 8 AND NOT LIB_SUFFIX)
-    set(LIB_SUFFIX "64")
-  endif()
-endif()
+# automatically set lib suffix
+if ( UNIX AND NOT APPLE AND NOT CMAKE_CROSSCOMPILING AND NOT EXISTS "/etc/debian_version" )
+  if ( CMAKE_SIZEOF_VOID_P EQUAL 8 AND NOT LIB_SUFFIX )
+    set ( LIB_SUFFIX 64 )
+  endif ()
+endif ()
 
 if(NOT APPLE)
-  # Create suffix to eventually install in lib64
   if(CMAKE_SIZEOF_VOID_P EQUAL 4)
       SET(PACK_ARCH "")
     else(CMAKE_SIZEOF_VOID_P EQUAL 8)

Reply via email to