[cmake-developers] [CMake 0015633]: Library not found when invoke find_library again

Mantis Bug Tracker mantis at public.kitware.com
Fri Jun 26 16:41:06 EDT 2015


The following issue has been SUBMITTED. 
====================================================================== 
http://public.kitware.com/Bug/view.php?id=15633 
====================================================================== 
Reported By:                Gustavo Melno
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   15633
Category:                   CMake
Reproducibility:            always
Severity:                   tweak
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2015-06-26 16:41 EDT
Last Modified:              2015-06-26 16:41 EDT
====================================================================== 
Summary:                    Library not found when invoke find_library again
Description: 
I do a library search for my project:

find_library(
  ICU_LIBRARY
  NAMES icuuc cygicuuc cygicuuc32
  DOC "Libraries to link against for the common parts of ICU")

if(ICU_INCLUDE_DIR AND ICU_LIBRARY)
  set(ICU_FOUND 1)
else()
  set(ICU_FOUND)
endif()

This works for the first time but another call to cmake or a change in any
CMakeLists.txt file will unset ICU_FOUND.
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2015-06-26 16:41 Gustavo Melno  New Issue                                    
======================================================================



More information about the cmake-developers mailing list