MantisBT - CMake
View Issue Details
0012280CMakeCMakepublic2011-06-15 16:192011-11-11 10:45
Julien Malik 
Brad King 
normalminoralways
closedfixed 
Ubuntumaverick
CMake 2.8.4 
CMake 2.8.5CMake 2.8.5 
0012280: FindSWIG won't find swig 1.3
I have swig 1.3 installed, but not 2.0
CMake won't find swig automatically.

If I install 2.0, swig is found correctly.

The attached patch fixes it.
Seems like find_program is not called with conventions from the documentation.
project(TestFindSWIG)
cmake_minimum_required(VERSION 2.8)
find_package(SWIG)
No tags attached.
related to 0011843closed Mathieu Malaterre FindSWIG and swig 2.0 
patch 0001-FindSWIG-use-NAMES-in-find_program-directives.patch (844) 2011-06-15 16:19
https://public.kitware.com/Bug/file/3940/0001-FindSWIG-use-NAMES-in-find_program-directives.patch
Issue History
2011-06-15 16:19Julien MalikNew Issue
2011-06-15 16:19Julien MalikFile Added: 0001-FindSWIG-use-NAMES-in-find_program-directives.patch
2011-06-15 16:24Brad KingAssigned To => Brad King
2011-06-15 16:24Brad KingStatusnew => assigned
2011-06-15 16:25Brad KingNote Added: 0026878
2011-06-15 16:25Brad KingStatusassigned => resolved
2011-06-15 16:25Brad KingResolutionopen => fixed
2011-06-16 16:07Brad KingNote Added: 0026888
2011-06-16 16:07Brad KingStatusresolved => feedback
2011-06-16 16:07Brad KingResolutionfixed => reopened
2011-06-16 16:08Brad KingRelationship addedrelated to 0011843
2011-06-16 16:09Brad KingNote Added: 0026889
2011-06-16 16:15Brad KingNote Added: 0026890
2011-06-16 16:15Brad KingStatusfeedback => resolved
2011-06-16 16:15Brad KingResolutionreopened => fixed
2011-06-21 13:03David ColeFixed in Version => CMake 2.8.5
2011-06-21 13:03David ColeTarget Version => CMake 2.8.5
2011-11-11 10:45David ColeNote Added: 0027779
2011-11-11 10:45David ColeStatusresolved => closed

Notes
(0026878)
Brad King   
2011-06-15 16:25   
Applied, thanks:

  http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=b09ae90b [^]
(0026888)
Brad King   
2011-06-16 16:07   
Re-opening to add some more information.
(0026889)
Brad King   
2011-06-16 16:09   
This was actually a regression since 2.8.4 caused by the fix to issue 0011843:

  http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=55b7c87e [^]

That change enabled finding swig 2.0 at the expense of 1.x.
(0026890)
Brad King   
2011-06-16 16:15   
Applied again, this time with more information in the commit message. I also based it on the commit that caused the regression so it can be merged into any version that has the regression:

  http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=03809b14 [^]

Commit b09ae90b has not been merged to 'master' so it will just stay harmlessly in 'next' and we can take this new one instead.
(0027779)
David Cole   
2011-11-11 10:45   
Closing resolved issues that have not been updated in more than 4 months.