FindLibGCC.cmake 631 B

12345678910111213141516171819202122
  1. # - Find libgcc
  2. # Find the libgcc library.
  3. #
  4. # LIBGCC_LIBRARIES - List of libraries when using libgcc
  5. # LIBGCC_FOUND - True if libgcc found.
  6. IF (LIBGCC_LIBRARY)
  7. # Already in cache, be silent
  8. SET(LIBGCC_FIND_QUIETLY TRUE)
  9. ENDIF (LIBGCC_LIBRARY)
  10. FIND_LIBRARY(LIBGCC_LIBRARY NAMES gcc libgcc)
  11. # handle the QUIETLY and REQUIRED arguments and set LIBGCC_FOUND to TRUE if
  12. # all listed variables are TRUE
  13. INCLUDE(FindPackageHandleStandardArgs)
  14. FIND_PACKAGE_HANDLE_STANDARD_ARGS(LIBGCC DEFAULT_MSG LIBGCC_LIBRARY)
  15. IF(LIBGCC_FOUND)
  16. SET(LIBGCC_LIBRARIES ${LIBGCC_LIBRARY})
  17. SET(HAVE_LIBGCC 1)
  18. ENDIF(LIBGCC_FOUND)