[cmake-developers] [CMake 0013295]: find_package looks in wrong order of paths

Mantis Bug Tracker mantis at public.kitware.com
Tue Jun 12 18:13:51 EDT 2012


The following issue has been SUBMITTED. 
====================================================================== 
http://public.kitware.com/Bug/view.php?id=13295 
====================================================================== 
Reported By:                Sune Vuorela
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   13295
Category:                   CMake
Reproducibility:            always
Severity:                   major
Priority:                   high
Status:                     new
====================================================================== 
Date Submitted:             2012-06-12 18:13 EDT
Last Modified:              2012-06-12 18:13 EDT
====================================================================== 
Summary:                    find_package looks in wrong order of paths
Description: 
On my system, I have among others 
/usr/lib/libgettextpo.a
/usr/lib/x86_64-linux-gnu/libgettextpo.so

trying to do a find_library(GETTEXTPO_LIBRARY NAMES gettextpo)
gives me the static library, while I expected it to find the dynamic library.

Steps to Reproduce: 
trying to build kdesdk master (or 4.9 prereleases) fails to build when trying to
link libgettextpo.a into a shared library
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2012-06-12 18:13 Sune Vuorela   New Issue                                    
======================================================================




More information about the cmake-developers mailing list