CMake: Display found information in some of the Find modules
Change-Id: I5d92f2f1a552888361a2939577c2b0177c62b596 Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
This commit is contained in:
parent
fb5cf5be15
commit
b0772b41c2
@ -57,3 +57,5 @@ set_package_properties(DB2 PROPERTIES
|
||||
URL "https://www.ibm.com"
|
||||
DESCRIPTION "IBM DB2 client library")
|
||||
|
||||
include(FindPackageHandleStandardArgs)
|
||||
find_package_handle_standard_args(DB2 DEFAULT_MSG DB2_INCLUDE_DIRS DB2_LIBRARIES)
|
||||
|
@ -46,3 +46,5 @@ set_package_properties(Oracle PROPERTIES
|
||||
URL "https://www.oracle.com"
|
||||
DESCRIPTION "Oracle client library")
|
||||
|
||||
include(FindPackageHandleStandardArgs)
|
||||
find_package_handle_standard_args(Oracle DEFAULT_MSG Oracle_INCLUDE_DIRS Oracle_LIBRARIES)
|
||||
|
@ -42,3 +42,6 @@ if(HAVE_STDATOMIC_WITH_LIB)
|
||||
endif()
|
||||
|
||||
set(WrapAtomic_FOUND 1)
|
||||
|
||||
include(FindPackageHandleStandardArgs)
|
||||
find_package_handle_standard_args(WrapAtomic DEFAULT_MSG WrapAtomic_FOUND)
|
||||
|
@ -40,3 +40,6 @@ endif()
|
||||
if(DBus1_FOUND)
|
||||
set(WrapDBus1_FOUND 1)
|
||||
endif()
|
||||
|
||||
include(FindPackageHandleStandardArgs)
|
||||
find_package_handle_standard_args(WrapDBus1 DEFAULT_MSG WrapDBus1_FOUND)
|
||||
|
@ -17,3 +17,6 @@ if (double-conversion_FOUND)
|
||||
set(WrapDoubleConversion_FOUND ON)
|
||||
return()
|
||||
endif()
|
||||
|
||||
include(FindPackageHandleStandardArgs)
|
||||
find_package_handle_standard_args(WrapDoubleConversion DEFAULT_MSG WrapDoubleConversion_FOUND)
|
||||
|
@ -35,3 +35,6 @@ if(HAVE_GETTIME)
|
||||
target_link_libraries(WrapRt::WrapRt INTERFACE "${LIBRT}")
|
||||
endif()
|
||||
endif()
|
||||
|
||||
include(FindPackageHandleStandardArgs)
|
||||
find_package_handle_standard_args(WrapRt DEFAULT_MSG WrapRt_FOUND)
|
||||
|
@ -33,3 +33,5 @@ if(Freetype_FOUND)
|
||||
endforeach()
|
||||
endif()
|
||||
|
||||
include(FindPackageHandleStandardArgs)
|
||||
find_package_handle_standard_args(WrapSystemFreetype DEFAULT_MSG WrapSystemFreetype_FOUND)
|
||||
|
@ -43,3 +43,6 @@ endif()
|
||||
unset(__harfbuzz_target_name)
|
||||
unset(__harfbuzz_include_dir)
|
||||
unset(__harfbuzz_broken_config_file)
|
||||
|
||||
include(FindPackageHandleStandardArgs)
|
||||
find_package_handle_standard_args(WrapSystemHarfbuzz DEFAULT_MSG WrapSystemHarfbuzz_FOUND)
|
||||
|
@ -21,3 +21,6 @@ else()
|
||||
set(WrapSystemPCRE2_FOUND TRUE)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
include(FindPackageHandleStandardArgs)
|
||||
find_package_handle_standard_args(WrapSystemPCRE2 DEFAULT_MSG WrapSystemPCRE2_FOUND)
|
||||
|
@ -25,3 +25,5 @@ if(PNG_FOUND)
|
||||
endforeach()
|
||||
endif()
|
||||
|
||||
include(FindPackageHandleStandardArgs)
|
||||
find_package_handle_standard_args(WrapSystemPNG DEFAULT_MSG WrapSystemPNG_FOUND)
|
||||
|
@ -76,6 +76,11 @@ macro(qt_find_package_system_or_bundled _unique_prefix)
|
||||
set_target_properties("${_qfwrap_${_unique_prefix}_WRAP_PACKAGE_TARGET}" PROPERTIES
|
||||
INTERFACE_QT_3RD_PARTY_PACKAGE_TYPE
|
||||
"${${_unique_prefix}_qt_package_type}")
|
||||
|
||||
include(FindPackageHandleStandardArgs)
|
||||
find_package_handle_standard_args(
|
||||
Wrap${_qfwrap_${_unique_prefix}_FRIENDLY_PACKAGE_NAME}
|
||||
DEFAULT_MSG ${_qfwrap_${_unique_prefix}_WRAP_PACKAGE_FOUND_VAR_NAME})
|
||||
elseif(${_unique_prefix}_qt_package_type STREQUAL "bundled")
|
||||
message(FATAL_ERROR "Can't find ${${_unique_prefix}_qt_package_target_to_use}.")
|
||||
endif()
|
||||
|
Loading…
Reference in New Issue
Block a user