From 47c666a3c457a052620c8a979e947d366e4b51e1 Mon Sep 17 00:00:00 2001 From: mpech Date: Wed, 6 Jul 2011 11:43:25 +0200 Subject: [PATCH] macro for SET_IF_NOT_SET --- CTestConfig.cmake | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CTestConfig.cmake b/CTestConfig.cmake index c93aa62..502b5f0 100644 --- a/CTestConfig.cmake +++ b/CTestConfig.cmake @@ -1,3 +1,8 @@ +MACRO(SET_IF_NOT_SET var val) + IF(NOT DEFINED "${var}") + SET("${var}" "${val}") + ENDIF(NOT DEFINED "${var}") +ENDMACRO(SET_IF_NOT_SET) # Set them in a dart file when using ctest to submit on an other dashboard # Those are set for running a classical make Experimental SET_IF_NOT_SET(CTEST_DROP_METHOD "http") -- 2.47.1