aboutsummaryrefslogtreecommitdiff
path: root/attic
diff options
context:
space:
mode:
authorAlex Neundorf <neundorf@kde.org>2011-07-10 20:08:22 +0200
committerAlex Neundorf <neundorf@kde.org>2011-07-10 20:08:22 +0200
commit1d807f9d0d461e983ff703aae92961c96a20ae58 (patch)
tree8290d752e2e2b70dc8cdeb2ddd9a569b0c4398f1 /attic
parent927fad11d1414df951be9b635c62747547ce91d4 (diff)
downloadextra-cmake-modules-1d807f9d0d461e983ff703aae92961c96a20ae58.tar.gz
extra-cmake-modules-1d807f9d0d461e983ff703aae92961c96a20ae58.tar.bz2
This macro is broken, remove it.
Alex
Diffstat (limited to 'attic')
-rw-r--r--attic/modules/MacroOptionalDependPackage.cmake22
1 files changed, 0 insertions, 22 deletions
diff --git a/attic/modules/MacroOptionalDependPackage.cmake b/attic/modules/MacroOptionalDependPackage.cmake
deleted file mode 100644
index 2ea79960..00000000
--- a/attic/modules/MacroOptionalDependPackage.cmake
+++ /dev/null
@@ -1,22 +0,0 @@
-# Search if cmake module is installed in computer
-# cmake will not fail but signal that we must install depend package before.
-# add as previously name of cmake module "_name" and define package needed "_module_needed"
-# if return DEPEND_PACKAGE_${_name}
-
-# Copyright (c) 2007, Montel Laurent <montel@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_DEPEND_PACKAGE _name _module_needed)
- set(_packagename Find${_name}.cmake)
- find_file(_PACKAGE_DEPEND_FOUND ${_packagename} PATHS ${CMAKE_MODULE_PATH} )
- if(NOT _PACKAGE_DEPEND_FOUND)
- message(STATUS "optional cmake package ${_packagename} (for ${_module_needed}) was not found.")
- set(DEPEND_PACKAGE_${_name} FALSE)
- else(NOT _PACKAGE_DEPEND_FOUND)
- set(DEPEND_PACKAGE_${_name} TRUE)
- endif(NOT _PACKAGE_DEPEND_FOUND)
-endmacro (MACRO_OPTIONAL_DEPEND_PACKAGE)
-