[cmake-developers] [CMake 0015250]: cmake --find-package ignores multi-arch dir

Mantis Bug Tracker mantis at public.kitware.com
Thu Nov 13 12:38:53 EST 2014


The following issue has been SUBMITTED. 
====================================================================== 
http://www.cmake.org/Bug/view.php?id=15250 
====================================================================== 
Reported By:                Felix Geyer
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   15250
Category:                   Modules
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2014-11-13 12:38 EST
Last Modified:              2014-11-13 12:38 EST
====================================================================== 
Summary:                    cmake --find-package ignores multi-arch dir
Description: 
cmake --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 Reproduce: 
Steps 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/
====================================================================== 

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   
                
======================================================================



More information about the cmake-developers mailing list