View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0012280CMakeCMakepublic2011-06-15 16:192011-11-11 10:45
ReporterJulien Malik 
Assigned ToBrad King 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSUbuntuOS Versionmaverick
Product VersionCMake 2.8.4 
Target VersionCMake 2.8.5Fixed in VersionCMake 2.8.5 
Summary0012280: FindSWIG won't find swig 1.3
DescriptionI 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.
Steps To Reproduceproject(TestFindSWIG)
cmake_minimum_required(VERSION 2.8)
find_package(SWIG)
TagsNo tags attached.
Attached Filespatch file icon 0001-FindSWIG-use-NAMES-in-find_program-directives.patch [^] (844 bytes) 2011-06-15 16:19 [Show Content]

 Relationships
related to 0011843closedMathieu Malaterre FindSWIG and swig 2.0 

  Notes
(0026878)
Brad King (manager)
2011-06-15 16:25

Applied, thanks:

  http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=b09ae90b [^]
(0026888)
Brad King (manager)
2011-06-16 16:07

Re-opening to add some more information.
(0026889)
Brad King (manager)
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 (manager)
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 (manager)
2011-11-11 10:45

Closing resolved issues that have not been updated in more than 4 months.

 Issue History
Date Modified Username Field Change
2011-06-15 16:19 Julien Malik New Issue
2011-06-15 16:19 Julien Malik File Added: 0001-FindSWIG-use-NAMES-in-find_program-directives.patch
2011-06-15 16:24 Brad King Assigned To => Brad King
2011-06-15 16:24 Brad King Status new => assigned
2011-06-15 16:25 Brad King Note Added: 0026878
2011-06-15 16:25 Brad King Status assigned => resolved
2011-06-15 16:25 Brad King Resolution open => fixed
2011-06-16 16:07 Brad King Note Added: 0026888
2011-06-16 16:07 Brad King Status resolved => feedback
2011-06-16 16:07 Brad King Resolution fixed => reopened
2011-06-16 16:08 Brad King Relationship added related to 0011843
2011-06-16 16:09 Brad King Note Added: 0026889
2011-06-16 16:15 Brad King Note Added: 0026890
2011-06-16 16:15 Brad King Status feedback => resolved
2011-06-16 16:15 Brad King Resolution reopened => fixed
2011-06-21 13:03 David Cole Fixed in Version => CMake 2.8.5
2011-06-21 13:03 David Cole Target Version => CMake 2.8.5
2011-11-11 10:45 David Cole Note Added: 0027779
2011-11-11 10:45 David Cole Status resolved => closed


Copyright © 2000 - 2018 MantisBT Team