From e2896fa39c10fac25184ad1cc4a608bd1130a216 Mon Sep 17 00:00:00 2001
From: Dominic Kempf <dominic.kempf@iwr.uni-heidelberg.de>
Date: Mon, 11 Feb 2019 15:56:48 +0100
Subject: [PATCH] [cmake][bugfix] Fix handling of absolute paths for UFL files

---
 cmake/modules/DuneCodegenMacros.cmake | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cmake/modules/DuneCodegenMacros.cmake b/cmake/modules/DuneCodegenMacros.cmake
index 6a02c016..787f9d48 100644
--- a/cmake/modules/DuneCodegenMacros.cmake
+++ b/cmake/modules/DuneCodegenMacros.cmake
@@ -116,7 +116,7 @@ function(add_generated_executable)
   if(NOT GEN_UFLFILE)
     message(FATAL_ERROR "Need to specify the UFLFILE parameter for add_generated_executable")
   endif()
-  if(NOT IS_ABSOLUTE GEN_UFLFILE)
+  if(NOT IS_ABSOLUTE ${GEN_UFLFILE})
     set(GEN_UFLFILE ${CMAKE_CURRENT_SOURCE_DIR}/${GEN_UFLFILE})
   endif()
   if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/${GEN_INIFILE})
-- 
GitLab