Non-prefixed names shouldn't be used for 64-bit architectures. The only
major releases with 64-bit support are 2.0.0 and 2.1.5, and both use the
x64- prefix. New patch attached.

Follow-up question: Why doesn't FindRuby use Config::CONFIG['LIBRUBY'],
'LIBRUBY_A', 'LIBRUBY_SO' to search for libs? Ruby reports the name of its
libraries.

On Fri, Feb 6, 2015 at 12:33 PM, Brad King <brad.k...@kitware.com> wrote:

> On 02/06/2015 03:29 PM, Michael Smith wrote:
> > The 64-bit ruby library names are:
> > * lib/libx64-mscvrt-ruby210-static.a
> > * lib/libx64-mscvrt-ruby210.dll.a
> > * bin/x64-mscvrt-ruby210.dll
> >
> > I've attached a patch that adds "x64-" prefixed lookup
>
> Thanks for working on this.  Some of the other find modules face
> similar situation.  In order to avoid finding 64-bit binaries
> when targeting a 32-bit architecture, use of such prefixes could
> be guarded by
>
>  if(CMAKE_SIZEOF_VOID_P EQUAL 8)
>
> Please revise accordingly.  Also please check whether the
> non-prefixed names should ever be used for 64-bit architectures.
>
> Thanks,
> -Brad
>
>

Attachment: 0001-Fix-finding-64-bit-Ruby-with-FindRuby-on-Windows.patch
Description: Binary data

-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake-developers

Reply via email to