summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/find_library/Created.cmake
blob: c0fd823c7dbf935d00dc7311f0b936d993817f07 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
list(APPEND CMAKE_FIND_LIBRARY_PREFIXES lib)
list(APPEND CMAKE_FIND_LIBRARY_SUFFIXES .a)
find_library(CREATED_LIBRARY
  NAMES created
  PATHS ${CMAKE_CURRENT_BINARY_DIR}/lib
  NO_DEFAULT_PATH
  )
message("CREATED_LIBRARY='${CREATED_LIBRARY}'")
file(MAKE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/lib)
file(WRITE "${CMAKE_CURRENT_BINARY_DIR}/lib/libcreated.a" "created")
find_library(CREATED_LIBRARY
  NAMES created
  PATHS ${CMAKE_CURRENT_BINARY_DIR}/lib
  NO_DEFAULT_PATH
  )
message("CREATED_LIBRARY='${CREATED_LIBRARY}'")