MantisBT - CMake
View Issue Details
0015633CMakeCMakepublic2015-06-26 16:412016-06-10 14:31
Gustavo Melno 
Kitware Robot 
normaltweakalways
closedmoved 
X86Ubuntu14.04
CMake 3.2.1 
 
0015633: Library not found when invoke find_library again
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.
No tags attached.
Issue History
2015-06-26 16:41Gustavo MelnoNew Issue
2015-06-29 08:36Brad KingNote Added: 0038994
2016-06-10 14:29Kitware RobotNote Added: 0042800
2016-06-10 14:29Kitware RobotStatusnew => resolved
2016-06-10 14:29Kitware RobotResolutionopen => moved
2016-06-10 14:29Kitware RobotAssigned To => Kitware Robot
2016-06-10 14:31Kitware RobotStatusresolved => closed

Notes
(0038994)
Brad King   
2015-06-29 08:36   
Please message() out the actual value of ICU_INCLUDE and ICU_LIBRARY in each case to see why they may be considered not found.
(0042800)
Kitware Robot   
2016-06-10 14:29   
Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current CMake Issues page linked in the banner at the top of this page.