19 строки
770 B
CMake
19 строки
770 B
CMake
function(print_variable x)
|
|
message(STATUS "${x}: ${${x}}")
|
|
endfunction()
|
|
|
|
function(quiet_message)
|
|
if(NOT FIND_QUIETLY)
|
|
message(${ARGV})
|
|
endif()
|
|
endfunction()
|
|
|
|
## Initialize some standardized variables
|
|
set(FIND_VERSION_COUNT ${${CMAKE_FIND_PACKAGE_NAME}_FIND_VERSION_COUNT})
|
|
set(FIND_VERSION_EXACT ${${CMAKE_FIND_PACKAGE_NAME}_FIND_VERSION_EXACT})
|
|
set(FIND_VERSION ${${CMAKE_FIND_PACKAGE_NAME}_FIND_VERSION})
|
|
set(FIND_VERSION_MAJOR ${${CMAKE_FIND_PACKAGE_NAME}_FIND_VERSION_MAJOR})
|
|
set(FIND_VERSION_MINOR ${${CMAKE_FIND_PACKAGE_NAME}_FIND_VERSION_MINOR})
|
|
set(FIND_VERSION_PATCH ${${CMAKE_FIND_PACKAGE_NAME}_FIND_VERSION_PATCH})
|
|
set(FIND_QUIETLY ${${CMAKE_FIND_PACKAGE_NAME}_FIND_QUIETLY})
|
|
set(FIND_REQUIRED ${${CMAKE_FIND_PACKAGE_NAME}_FIND_REQUIRED}) |