[Cmake] Failing tests in AMD64

William A. Hoffman billlist at nycap.rr.com
Wed Jun 30 11:29:53 EDT 2004


OK, I think I have a solution for this.
There was a bug in the FindLibrary command because
it did not look in PATH before looking in the paths specified
to the command.

So, I just checked in a change so that the PATH is used first for:
FIND_FILE
FIND_PROGRAM
FIND_LIBRARY

In addition the following environment variables will be searched first:
FIND_FILE  CMAKE_FILE_PATH
FIND_PROGRARM CMAKE_PROGRAM_PATH
FIND_LILBRARY CMAKE_LIBRARY_PATH


So, on systems that have both 32 and 64 bit paths, you can use
environment variables to tell cmake how to find the correct ones.
The CMAKE*PATH variables have the same syntax as the PATH variable.
(; separated on windows, and : separated on unix.)

I have checked this into cvs, so if someone on one of these machines could
give it a try, and see if the tests pass now using the CMAKE env variables I would
appreciate it.

Thanks.

-Bill


At 03:20 AM 6/30/2004, Peter Vanroose wrote:
>>X11_X11_LIB=/usr/X11R6/lib64/libX11.so
>>X11_Xext_LIB=/usr/X11R6/lib64/libXext.so
>>...
>>I have tried turning lib into lib64 in the FindX11.cmake module:
>>
>>SET(X11_LIB_SEARCH_PATH
>>   /usr/X11R6/lib64
>>   /usr/local/lib64
>>   /usr/openwin/lib64
>>   /usr/lib64
>>)
>
>I have identical problems on SGI (IRIX) where the libraries in /usr/lib should not be used, but instead the ones in /usr/lib32 have to be used.
>
>The only way to force this is by manually setting
> GLUT_Xi_LIBRARY:FILEPATH=/usr/lib32/libXi.so
> GLUT_Xmu_LIBRARY:FILEPATH=/usr/lib32/libXmu.so
> GTK_Xi_LIBRARY:FILEPATH=/usr/lib32/libXi.so
> JPEG_LIBRARY:FILEPATH=/usr/lib32/libjpeg.so
> OPENGL_gl_LIBRARY:FILEPATH=/usr/lib32/libGL.so
> OPENGL_glu_LIBRARY:FILEPATH=/usr/lib32/libGLU.so
> PNG_LIBRARY:FILEPATH=/usr/lib32/libpng.so
> TIFF_LIBRARY:FILEPATH=/usr/lib32/libtiff.so
> X11_X11_LIB:FILEPATH=/usr/lib32/libX11.so
> X11_X11_LIBRARY:FILEPATH=/usr/lib32/libX11.so
> X11_Xext_LIB:FILEPATH=/usr/lib32/libXext.so
> X11_Xext_LIBRARY:FILEPATH=/usr/lib32/libXext.so
> ZLIB_LIBRARY:FILEPATH=/usr/lib32/libz.so
>in every project's CMakeCache.txt file.
>
>
>--      Peter Vanroose.



More information about the Cmake mailing list