MantisBT - CMake
View Issue Details
0006976CMakeModulespublic2008-05-07 04:352012-02-16 03:43
Christian Ehrlicher 
Alex Neundorf 
normaltrivialalways
closedfixed 
CMake-2-6 
 
0006976: Xxf86vm is not searched in FindX11.cmake
I'm missing X11_Xxf86vm_LIB in FindX11.cmake - it's looking for a lot of other X11 libs but this is missing. Maybe you can add this one too.

Thx
No tags attached.
patch FindX11.cmake.patch (1,943) 2008-05-21 03:57
https://public.kitware.com/Bug/file/1479/FindX11.cmake.patch
Issue History
2008-05-07 04:35Christian EhrlicherNew Issue
2008-05-16 10:14Bill HoffmanNote Added: 0011970
2008-05-16 10:14Bill HoffmanStatusnew => assigned
2008-05-16 10:14Bill HoffmanAssigned To => Bill Hoffman
2008-05-21 03:57Christian EhrlicherNote Added: 0012033
2008-05-21 03:57Christian EhrlicherFile Added: FindX11.cmake.patch
2008-08-21 15:43Bill HoffmanAssigned ToBill Hoffman => Alex Neundorf
2009-01-10 08:52Alex NeundorfCategoryCMake => Modules
2012-02-14 17:01BeucNote Added: 0028589
2012-02-14 17:02BeucNote Edited: 0028589bug_revision_view_page.php?bugnote_id=28589#r536
2012-02-16 03:43Alex NeundorfNote Added: 0028603
2012-02-16 03:43Alex NeundorfStatusassigned => closed
2012-02-16 03:43Alex NeundorfResolutionopen => fixed

Notes
(0011970)
Bill Hoffman   
2008-05-16 10:14   
Can you provide a patch that works for you?
(0012033)
Christian Ehrlicher   
2008-05-21 03:57   
Here a patch - I hope I'm correct that Xxf86vm is the lib to X11/extensions/xf86vmode.h (corresponding to Xxf86misc and X11/extensions/xf86misc.h)
(0028589)
Beuc   
2012-02-14 17:01   
(edited on: 2012-02-14 17:02)
The FreeGLUT project is switching to CMake, and it's affected by this issue.

The patch works for me - is there a problem with the patch for you?

Currently I have to work-around with:

        # Work-around http://www.cmake.org/Bug/bug_view_page.php?bug_id=6976 [^]
        IF(NOT "${X11_Xxf86vm_LIB}")
            SET(X11_Xxf86vm_LIB "Xxf86vm")
        ENDIF()

(0028603)
Alex Neundorf   
2012-02-16 03:43   
Patch applied, and merged into next.

This patch contains a change, which changes the behaviour a bit:
now X11_xf86vmode_FOUND is only set to TRUE and the include directory is added to X11_INCLUDE_DIR, if additionally to X11_xf86vmode_INCLUDE_PATH also X11_Xxf86vm_LIB has been found.
I hope this doesn't cause regressions somewhere.