You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
441 B
16 lines
441 B
3 years ago
|
|
||
|
if(TEMP_DIR)
|
||
|
file(REMOVE_RECURSE "${TEMP_DIR}")
|
||
|
file(MAKE_DIRECTORY "${TEMP_DIR}")
|
||
|
file(MAKE_DIRECTORY "${TEMP_DIR}/lib")
|
||
|
file(WRITE "${TEMP_DIR}/lib/libcreated.a" "created")
|
||
|
endif()
|
||
|
|
||
|
set(CMAKE_FIND_DEBUG_MODE 1)
|
||
|
find_library(CREATED_LIBRARY NAMES library_no_exist)
|
||
|
|
||
|
set(CMAKE_PREFIX_PATH "${TEMP_DIR}")
|
||
|
find_library(CREATED_LIBRARY NAMES created)
|
||
|
message(STATUS "CREATED_LIBRARY='${CREATED_LIBRARY}'")
|
||
|
set(CMAKE_FIND_DEBUG_MODE 0)
|