mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-06 05:40:54 -06:00
This aligns `find_library` with the documentation that states it can be called from script mode. This is done by infering the proper prefix and suffix values when `find_library` is called when the `CMAKE_FIND_LIBRARY*` are not set. This also means that `find_library` won't produce obscure error messages about unset definitions. Fixes: #22027
15 lines
322 B
CMake
15 lines
322 B
CMake
include(RunCMake)
|
|
|
|
run_cmake(Created)
|
|
run_cmake(FromPrefixPath)
|
|
run_cmake(FromPATHEnv)
|
|
if(UNIX AND NOT CYGWIN)
|
|
run_cmake(LibArchLink)
|
|
run_cmake(LibSymLink)
|
|
endif()
|
|
run_cmake(PrefixInPATH)
|
|
run_cmake(Required)
|
|
run_cmake(NO_CACHE)
|
|
|
|
run_cmake_script(FromScriptMode "-DTEMP_DIR=${RunCMake_BINARY_DIR}/FromScriptMode-temp")
|