zlibConfig.cmake.in revision 1.1.1.1 1 @PACKAGE_INIT@
2
3 set(_ZLIB_supported_components "shared" "static")
4
5 if(ZLIB_FIND_COMPONENTS)
6 foreach(_comp ${ZLIB_FIND_COMPONENTS})
7 if(NOT _comp IN_LIST _ZLIB_supported_components)
8 set(ZLIB_FOUND False)
9 set(ZLIB_NOT_FOUND_MESSAGE "Unsupported component: ${_comp}")
10 endif(NOT _comp IN_LIST _ZLIB_supported_components)
11
12 include("${CMAKE_CURRENT_LIST_DIR}/ZLIB-${_comp}.cmake")
13 endforeach(_comp ${ZLIB_FIND_COMPONENTS})
14 else(ZLIB_FIND_COMPONENTS)
15 foreach(_component_config IN LISTS _ZLIB_supported_components)
16 include("${CMAKE_CURRENT_LIST_DIR}/ZLIB-${_component_config}.cmake")
17 endforeach(_component_config IN LISTS _ZLIB_supported_components)
18 endif(ZLIB_FIND_COMPONENTS)
19