summaryrefslogtreecommitdiffstats
path: root/cmake/Modules/FindZLIB.cmake
diff options
context:
space:
mode:
authorAde Lee <alee@redhat.com>2012-11-20 14:15:36 -0500
committerAde Lee <alee@redhat.com>2012-11-20 15:05:24 -0500
commit96af71db61acac4adb3a1c8a73391467b3572a49 (patch)
tree4ab8c382de3907ba57293e94d82a9f51bdd0e4ba /cmake/Modules/FindZLIB.cmake
parent9862a04acb57278c3b9f97b7517970cf5078017f (diff)
downloadpki-96af71db61acac4adb3a1c8a73391467b3572a49.tar.gz
pki-96af71db61acac4adb3a1c8a73391467b3572a49.tar.xz
pki-96af71db61acac4adb3a1c8a73391467b3572a49.zip
Removed obsolete cmake modules, updated spec files
Diffstat (limited to 'cmake/Modules/FindZLIB.cmake')
-rw-r--r--cmake/Modules/FindZLIB.cmake69
1 files changed, 0 insertions, 69 deletions
diff --git a/cmake/Modules/FindZLIB.cmake b/cmake/Modules/FindZLIB.cmake
deleted file mode 100644
index 197e6c757..000000000
--- a/cmake/Modules/FindZLIB.cmake
+++ /dev/null
@@ -1,69 +0,0 @@
-# - Try to find ZLIB
-# Once done this will define
-#
-# ZLIB_FOUND - system has ZLIB
-# ZLIB_INCLUDE_DIRS - the ZLIB include directory
-# ZLIB_LIBRARIES - Link these to use ZLIB
-# ZLIB_DEFINITIONS - Compiler switches required for using ZLIB
-#
-# Copyright (c) 2009-2010 Andreas Schneider <mail@cynapses.org>
-#
-# Redistribution and use is allowed according to the terms of the New
-# BSD license.
-# For details see the accompanying COPYING-CMAKE-SCRIPTS file.
-#
-
-
-if (ZLIB_LIBRARIES AND ZLIB_INCLUDE_DIRS)
- # in cache already
- set(ZLIB_FOUND TRUE)
-else (ZLIB_LIBRARIES AND ZLIB_INCLUDE_DIRS)
- if (WIN32)
- set(_ZLIB_DIR $ENV{PROGRAMFILES}/GnuWin32)
- endif (WIN32)
-
- find_path(ZLIB_INCLUDE_DIR
- NAMES
- zlib.h
- PATHS
- ${_ZLIB_DIR}/include
- /usr/include
- /usr/local/include
- /opt/local/include
- /sw/include
- /usr/lib/sfw/include
- )
-
- find_library(Z_LIBRARY
- NAMES
- z
- zlib
- zlib1
- PATHS
- ${_ZLIB_DIR}/lib
- /usr/lib
- /usr/local/lib
- /opt/local/lib
- /sw/lib
- /usr/sfw/lib/64
- /usr/sfw/lib
- )
-
- set(ZLIB_INCLUDE_DIRS
- ${ZLIB_INCLUDE_DIR}
- )
-
- if (Z_LIBRARY)
- set(ZLIB_LIBRARIES
- ${ZLIB_LIBRARIES}
- ${Z_LIBRARY}
- )
- endif (Z_LIBRARY)
-
- include(FindPackageHandleStandardArgs)
- find_package_handle_standard_args(ZLIB DEFAULT_MSG ZLIB_LIBRARIES ZLIB_INCLUDE_DIRS)
-
- # show the ZLIB_INCLUDE_DIRS and ZLIB_LIBRARIES variables only in the advanced view
- mark_as_advanced(ZLIB_INCLUDE_DIRS ZLIB_LIBRARIES)
-
-endif (ZLIB_LIBRARIES AND ZLIB_INCLUDE_DIRS)