summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/find_library/Required.cmake
blob: 78c9f878e1f358ed15fc723354a384e820b62a5e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
list(APPEND CMAKE_FIND_LIBRARY_PREFIXES lib)
list(APPEND CMAKE_FIND_LIBRARY_SUFFIXES .a)
find_library(LIB_exists
  NAMES PrefixInPATH
  PATHS ${CMAKE_CURRENT_SOURCE_DIR}/lib
  NO_DEFAULT_PATH
  REQUIRED
  )
message(STATUS "LIB_exists='${LIB_exists}'")

find_library(LIB_doNotExists
  NAMES doNotExists
  REQUIRED
  )