[cmake-developers] [CMake 0015263]: FindOSG/FindOpenThreads does not work when only debug libraries are installed

Mantis Bug Tracker mantis at public.kitware.com
Tue Nov 25 01:58:38 EST 2014


The following issue has been SUBMITTED. 
====================================================================== 
http://public.kitware.com/Bug/view.php?id=15263 
====================================================================== 
Reported By:                Christian Ehrlicher
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   15263
Category:                   Modules
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2014-11-25 01:58 EST
Last Modified:              2014-11-25 01:58 EST
====================================================================== 
Summary:                    FindOSG/FindOpenThreads does not work when only
debug libraries are installed
Description: 
When only the Debug versions of OSG/OpenThreads libraries are installed, cmake
is unable to find the libraries. The problem is, that Findosg_functions.cmake
only add the debug library to '${module_uc}_LIBRARIES' but later on
FIND_PACKAGE_HANDLE_STANDARD_ARGS() is called with '${module_uc}_LIBRARY' which
is only filled when the release version of OSG is found.

Simple fix: change '${module_uc}_LIBRARY' to '${module_uc}_LIBRARIES' in the
FPHSA - call and all is working as expected.
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2014-11-25 01:58 Christian EhrlicherNew Issue                                   

======================================================================



More information about the cmake-developers mailing list