From b39e393363141e698087445d723a1ee1eb266e8b Mon Sep 17 00:00:00 2001 From: Laurent Montel Date: Mon, 24 Sep 2007 12:56:38 +0000 Subject: Allow to put TEST arg as second argument svn path=/trunk/KDE/kdelibs/; revision=716277 --- modules/KDE4Macros.cmake | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'modules') diff --git a/modules/KDE4Macros.cmake b/modules/KDE4Macros.cmake index 078577b2..a3bf028a 100644 --- a/modules/KDE4Macros.cmake +++ b/modules/KDE4Macros.cmake @@ -654,6 +654,12 @@ macro(KDE4_CHECK_EXECUTABLE_PARAMS _output_LIST _nogui _uninst _test) set(remove 0) endif (${first_PARAM} STREQUAL "TEST") + if (${second_PARAM} STREQUAL "TEST") + set(${_test} "TEST") + set(remove 0;1) + endif (${second_PARAM} STREQUAL "TEST") + + if (NOT "${remove}" STREQUAL "NOTFOUND") list(REMOVE_AT ${_output_LIST} ${remove}) -- cgit v1.2.1