Required.cmake 317 B

1234567891011121314
  1. list(APPEND CMAKE_FIND_LIBRARY_PREFIXES lib)
  2. list(APPEND CMAKE_FIND_LIBRARY_SUFFIXES .a)
  3. find_library(LIB_exists
  4. NAMES PrefixInPATH
  5. PATHS ${CMAKE_CURRENT_SOURCE_DIR}/lib
  6. NO_DEFAULT_PATH
  7. REQUIRED
  8. )
  9. message(STATUS "LIB_exists='${LIB_exists}'")
  10. find_library(LIB_doNotExists
  11. NAMES doNotExists
  12. REQUIRED
  13. )