MantisBT - CMake
View Issue Details
0011429CMakeModulespublic2010-11-09 18:222011-03-10 14:41
Vincent Levesque 
Philip Lowman 
normalminoralways
closedfixed 
CMake 2.8.3 
CMake 2.8.4CMake 2.8.4 
0011429: FindGTK2 does not find libraries built for Visual Studio 2010
The version of FindGTK2.cmake included in CMake 2.8.3 looks for libraries ending in "-vc80" and "-vc90" when generating projects for Visual Studio 2008 and 2009 but does not look for "-vc100" when generating projects for Visual Studio 2010. I tested the following correction (also attached as a patch) on Windows 7 with Visual Studio 2010, CMake 2.8.3 and GTK 2.22.0:

    if(_expand_vc)
        # Add vc80/vc90/vc100 midfixes
        if(MSVC80)
            set(_library ${_library}-vc80)
            set(_library_d ${_library}-d)
        elseif(MSVC90)
            set(_library ${_library}-vc90)
            set(_library_d ${_library}-d)
    elseif(MSVC10)
            set(_library ${_library}-vc100)
            set(_library_d ${_library}-d)
        endif()
    endif()

GTK: ftp://ftp.gnome.org/pub/GNOME/binaries/win32/gtkmm/2.22/gtkmm-win32-devel-2.22.0-1.exe [^]
No tags attached.
patch findgtk2-vc100.patch (382) 2010-11-09 18:22
https://public.kitware.com/Bug/file/3480/findgtk2-vc100.patch
Issue History
2010-11-09 18:22Vincent LevesqueNew Issue
2010-11-09 18:22Vincent LevesqueFile Added: findgtk2-vc100.patch
2010-11-09 21:13Philip LowmanStatusnew => assigned
2010-11-09 21:13Philip LowmanAssigned To => Philip Lowman
2010-11-09 21:47Philip LowmanTarget Version => CMake 2.8.4
2010-11-09 21:53Philip LowmanNote Added: 0023116
2010-11-09 21:53Philip LowmanStatusassigned => resolved
2010-11-09 21:53Philip LowmanFixed in Version => CMake 2.8.4
2010-11-09 21:53Philip LowmanResolutionopen => fixed
2011-03-10 14:41David ColeNote Added: 0025734
2011-03-10 14:41David ColeStatusresolved => closed

Notes
(0023116)
Philip Lowman   
2010-11-09 21:53   
Thanks for the patch. I have merged it to next (with a couple of additional tweaks I made) and it should be in git master within one week. It will be in CMake 2.8.4.

http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=1321eb979671bb99f4d5c973e633f760fb2e3923 [^]
(0025734)
David Cole   
2011-03-10 14:41   
Closing resolved issues that have not been updated in more than 3 months.