View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0015250CMakeModulespublic2014-11-13 12:382015-06-01 08:38
ReporterFelix Geyer 
Assigned To 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSOS Version
Product VersionCMake 3.0.2 
Target VersionCMake 3.2Fixed in VersionCMake 3.2 
Summary0015250: cmake --find-package ignores multi-arch dir
Descriptioncmake --find-package ignores multi-arch dirs when looking for the library.

In Modules/CMakeFindPackageMode.cmake it sets CMAKE_${LANGUAGE}_LANGUAGE_ARCHITECTURE which I believe is a typo.
It should be CMAKE_${LANGUAGE}_LIBRARY_ARCHITECTURE.

It also doesn't set the CMAKE_LIBRARY_ARCHITECTURE variable.
Steps To ReproduceSteps to reproduce in Debian unstable:
# apt-get install cmake libgdcm2-dev
# cmake --find-package -DNAME=GDCM -DLANGUAGE=CXX -DCOMPILER_ID=GNU -DMODE=COMPILE
GDCM not found.
CMake Error: Problem processing arguments. Aborting.

with the attached patch:

# cmake --find-package -DNAME=GDCM -DLANGUAGE=CXX -DCOMPILER_ID=GNU -DMODE=COMPILE
-I/usr/include/gdcm-2.4


The gdcm cmake files are located in /usr/lib/x86_64-linux-gnu/gdcm-2.4/
TagsNo tags attached.
Attached Filespatch file icon cmake_findpackage_multiarch.patch [^] (823 bytes) 2014-11-13 12:38 [Show Content]

 Relationships

  Notes
(0037741)
Brad King (manager)
2015-01-19 10:49

I've applied the patch with a minor tweak:

 CMakeFindPackageMode: Fix Debian multiarch default guess
 http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=48984958 [^]

Please test.
(0038850)
Robert Maynard (manager)
2015-06-01 08:38

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

 Issue History
Date Modified Username Field Change
2014-11-13 12:38 Felix Geyer New Issue
2014-11-13 12:38 Felix Geyer File Added: cmake_findpackage_multiarch.patch
2014-11-13 13:06 Brad King Assigned To => Alex Neundorf
2014-11-13 13:06 Brad King Status new => assigned
2014-11-13 13:06 Brad King Target Version => CMake 3.2
2015-01-19 10:29 Brad King Target Version CMake 3.2 =>
2015-01-19 10:49 Brad King Note Added: 0037741
2015-01-19 10:50 Brad King Assigned To Alex Neundorf =>
2015-01-19 10:50 Brad King Status assigned => acknowledged
2015-01-19 10:50 Brad King Target Version => CMake 3.2
2015-01-20 09:15 Brad King Status acknowledged => resolved
2015-01-20 09:15 Brad King Resolution open => fixed
2015-01-20 09:15 Brad King Fixed in Version => CMake 3.2
2015-06-01 08:38 Robert Maynard Note Added: 0038850
2015-06-01 08:38 Robert Maynard Status resolved => closed


Copyright © 2000 - 2018 MantisBT Team