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