summaryrefslogtreecommitdiff
path: root/Build/source/libs/poppler/poppler-0.12.4/cmake/modules/MacroOptionalFindPackage.cmake
diff options
context:
space:
mode:
authorPeter Breitenlohner <peb@mppmu.mpg.de>2011-04-13 06:05:13 +0000
committerPeter Breitenlohner <peb@mppmu.mpg.de>2011-04-13 06:05:13 +0000
commit7de2289e693d3fd86402207517568f99511aa916 (patch)
treecd3257a84d8dfc5d761cd1ffe01d1297e5d464b2 /Build/source/libs/poppler/poppler-0.12.4/cmake/modules/MacroOptionalFindPackage.cmake
parent4ca57b91804c5a4acb3152c4b5192a35e51ca3fe (diff)
poppler build fixes
git-svn-id: svn://tug.org/texlive/trunk@22067 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/libs/poppler/poppler-0.12.4/cmake/modules/MacroOptionalFindPackage.cmake')
-rw-r--r--Build/source/libs/poppler/poppler-0.12.4/cmake/modules/MacroOptionalFindPackage.cmake28
1 files changed, 0 insertions, 28 deletions
diff --git a/Build/source/libs/poppler/poppler-0.12.4/cmake/modules/MacroOptionalFindPackage.cmake b/Build/source/libs/poppler/poppler-0.12.4/cmake/modules/MacroOptionalFindPackage.cmake
deleted file mode 100644
index 816cdb7e872..00000000000
--- a/Build/source/libs/poppler/poppler-0.12.4/cmake/modules/MacroOptionalFindPackage.cmake
+++ /dev/null
@@ -1,28 +0,0 @@
-# - MACRO_OPTIONAL_FIND_PACKAGE() combines FIND_PACKAGE() with an OPTION()
-# MACRO_OPTIONAL_FIND_PACKAGE( <name> [QUIT] )
-# This macro is a combination of OPTION() and FIND_PACKAGE(), it
-# works like FIND_PACKAGE(), but additionally it automatically creates
-# an option name WITH_<name>, which can be disabled via the cmake GUI.
-# or via -DWITH_<name>=OFF
-# The standard <name>_FOUND variables can be used in the same way
-# as when using the normal FIND_PACKAGE()
-
-# Copyright (c) 2006, Alexander Neundorf, <neundorf@kde.org>
-#
-# Redistribution and use is allowed according to the terms of the BSD license.
-# For details see the accompanying COPYING-CMAKE-SCRIPTS file.
-
-
-MACRO (MACRO_OPTIONAL_FIND_PACKAGE _name )
- OPTION(WITH_${_name} "Search for ${_name} package" ON)
- if (WITH_${_name})
- FIND_PACKAGE(${_name} ${ARGN})
- else (WITH_${_name})
- set(${_name}_FOUND)
- set(${_name}_INCLUDE_DIR)
- set(${_name}_INCLUDES)
- set(${_name}_LIBRARY)
- set(${_name}_LIBRARIES)
- endif (WITH_${_name})
-ENDMACRO (MACRO_OPTIONAL_FIND_PACKAGE)
-