summaryrefslogtreecommitdiffstats
path: root/cmakemodules/MacroOptionalFindPackage.cmake
diff options
context:
space:
mode:
authorTimothy Pearson <[email protected]>2011-11-25 16:10:54 -0600
committerTimothy Pearson <[email protected]>2011-11-25 16:10:54 -0600
commit17e330a9ae07a8d69bd33104de59b9d3ada7b20c (patch)
tree446ac9e405555f43a7b2278ad790cae50f06373c /cmakemodules/MacroOptionalFindPackage.cmake
parente5e6497cb7ef4cc3d384c1f01962f99934cc1eee (diff)
downloadkbfx-17e330a9ae07a8d69bd33104de59b9d3ada7b20c.tar.gz
kbfx-17e330a9ae07a8d69bd33104de59b9d3ada7b20c.zip
Clean up
Diffstat (limited to 'cmakemodules/MacroOptionalFindPackage.cmake')
-rw-r--r--cmakemodules/MacroOptionalFindPackage.cmake28
1 files changed, 0 insertions, 28 deletions
diff --git a/cmakemodules/MacroOptionalFindPackage.cmake b/cmakemodules/MacroOptionalFindPackage.cmake
deleted file mode 100644
index 816cdb7..0000000
--- a/cmakemodules/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, <[email protected]>
-#
-# 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)
-