Upload Apkdiff Module Source Code
This commit is contained in:
45
apkdiff/third_party/zlib/contrib/iostream3/iostream3Config.cmake.in
vendored
Normal file
45
apkdiff/third_party/zlib/contrib/iostream3/iostream3Config.cmake.in
vendored
Normal file
@@ -0,0 +1,45 @@
|
||||
set(_iostreamv3_supported_components "shared" "static")
|
||||
include(CMakeFindDependencyMacro)
|
||||
|
||||
if(iostreamv3_FIND_COMPONENTS)
|
||||
find_dependency(ZLIB CONFIG COMPONENTS ${iostreamv3_FIND_COMPONENTS})
|
||||
|
||||
foreach(_comp ${iostreamv3_FIND_COMPONENTS})
|
||||
if(NOT _comp IN_LIST _iostreamv3_supported_components)
|
||||
set(iostreamv3_FOUND False)
|
||||
set(iostreamv3_NOT_FOUND_MESSAGE "Unsupported component: ${_comp}")
|
||||
endif(NOT _comp IN_LIST _iostreamv3_supported_components)
|
||||
|
||||
include("${CMAKE_CURRENT_LIST_DIR}/iostreamv3-${_comp}.cmake"
|
||||
OPTIONAL
|
||||
RESULT_VARIABLE _comp_loaded)
|
||||
|
||||
if(NOT _comp_loaded)
|
||||
set(iostreamv3_FOUND False)
|
||||
set(iostreamv3_NOT_FOUND_MESSAGE "Component ${_comp} not found.")
|
||||
else(NOT _comp_loaded)
|
||||
set(iostreamv3_${_comp}_FOUND TRUE)
|
||||
endif(NOT _comp_loaded)
|
||||
endforeach(_comp ${iostreamv3_FIND_COMPONENTS})
|
||||
else(iostream3_FIND_COMPONENTS)
|
||||
find_dependency(ZLIB CONFIG)
|
||||
|
||||
foreach(_component_config IN LISTS _iostreamv3_supported_components)
|
||||
include("${CMAKE_CURRENT_LIST_DIR}/iostreamv3-${_component_config}.cmake"
|
||||
OPTIONAL)
|
||||
endforeach(_component_config IN LISTS _iostreamv3_supported_components)
|
||||
|
||||
if(NOT TARGET IOSTREAMV3::IOSTREAMV3)
|
||||
set(iostreamv3_FOUND False)
|
||||
set(iostreamv3_NOT_FOUND_MESSAGE "Target ZLIB::ZLIB not created\n")
|
||||
string(APPEND iostreamv3_NOT_FOUND_MESSAGE "build iostreamv3 with support for shared libs or\n")
|
||||
string(APPEND iostreamv3_NOT_FOUND_MESSAGE "specify COMPONENTS static in your find_package call")
|
||||
endif(NOT TARGET IOSTREAMV3::IOSTREAMV3)
|
||||
|
||||
if(NOT TARGET IOSTREAMV3::IOSTREAMV3STATIC)
|
||||
set(iostreamv3_FOUND False)
|
||||
set(iostreamv3_NOT_FOUND_MESSAGE "Target ZLIB::ZLIBSTATIC not created\n")
|
||||
string(APPEND iostreamv3_NOT_FOUND_MESSAGE "build iostreamv3 with support for static libs or\n")
|
||||
string(APPEND iostreamv3_NOT_FOUND_MESSAGE "specify COMPONENTS shared in your find_package call")
|
||||
endif(NOT TARGET IOSTREAMV3::IOSTREAMV3STATIC)
|
||||
endif(iostreamv3_FIND_COMPONENTS)
|
||||
Reference in New Issue
Block a user