[cmake-developers] FindRuby doesn't find 64-bit Ruby on Windows

Brad King brad.king at kitware.com
Fri Feb 6 15:33:38 EST 2015


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



More information about the cmake-developers mailing list