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

-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake-developers

Reply via email to