From 095470941e9a5c481ee9736e802052bd390c505f Mon Sep 17 00:00:00 2001 From: Alexander Neundorf Date: Sun, 16 Dec 2007 13:19:46 +0000 Subject: 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 --- modules/MacroLibrary.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/MacroLibrary.cmake') 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( [QUIT] ) # Copyright (c) 2006, Alexander Neundorf, # @@ -12,6 +11,7 @@ INCLUDE(MacroAdditionalCleanFiles) INCLUDE(MacroAddFileDependencies) INCLUDE(MacroAddCompileFlags) INCLUDE(MacroAddLinkFlags) +INCLUDE(MacroAppendIf) INCLUDE(MacroEnsureOutOfSourceBuild) INCLUDE(MacroBoolTo01) INCLUDE(MacroPushRequiredVars) -- cgit v1.2.1