aboutsummaryrefslogtreecommitdiff
path: root/modules/MacroLibrary.cmake
diff options
context:
space:
mode:
authorAlexander Neundorf <neundorf@kde.org>2007-12-16 13:19:46 +0000
committerAlexander Neundorf <neundorf@kde.org>2007-12-16 13:19:46 +0000
commit095470941e9a5c481ee9736e802052bd390c505f (patch)
tree3a357309a500c2e71b57d6e9a5254f466bbc8bff /modules/MacroLibrary.cmake
parent2414142ddec42fb0c112a7d0df45214d9375b6c3 (diff)
downloadextra-cmake-modules-095470941e9a5c481ee9736e802052bd390c505f.tar.gz
extra-cmake-modules-095470941e9a5c481ee9736e802052bd390c505f.tar.bz2
new macro MACRO_APPEND_IF(var condition value1..valuen)
can be used to simplify code: macro_append_if(mySrcs SOMELIB_FOUND file1.cpp file2.cpp) instead of if(SOMELIB_FOUND) set(mySrcs file1.cpp file2.cpp) endif(SOMELIB_FOUND) Alex svn path=/trunk/KDE/kdelibs/; revision=749077
Diffstat (limited to 'modules/MacroLibrary.cmake')
-rw-r--r--modules/MacroLibrary.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/MacroLibrary.cmake b/modules/MacroLibrary.cmake
index 3b802126..5e482f92 100644
--- a/modules/MacroLibrary.cmake
+++ b/modules/MacroLibrary.cmake
@@ -1,5 +1,4 @@
# - include MacroLibrary offers a collection of macros which extend the built-in cmake commands
-# OPTIONAL_FIND_PACKAGE( <name> [QUIT] )
# Copyright (c) 2006, Alexander Neundorf, <neundorf@kde.org>
#
@@ -12,6 +11,7 @@ INCLUDE(MacroAdditionalCleanFiles)
INCLUDE(MacroAddFileDependencies)
INCLUDE(MacroAddCompileFlags)
INCLUDE(MacroAddLinkFlags)
+INCLUDE(MacroAppendIf)
INCLUDE(MacroEnsureOutOfSourceBuild)
INCLUDE(MacroBoolTo01)
INCLUDE(MacroPushRequiredVars)