From 5d289180e02d2d1c631a32b73bb021b34f7a2657 Mon Sep 17 00:00:00 2001 From: Dominic Kempf <dominic.kempf@iwr.uni-heidelberg.de> Date: Thu, 7 Apr 2016 14:55:33 +0200 Subject: [PATCH] [cmake][bugfix] correctly pipe form compiler args --- cmake/modules/DunePerftoolMacros.cmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmake/modules/DunePerftoolMacros.cmake b/cmake/modules/DunePerftoolMacros.cmake index 474a6000..43b1c394 100644 --- a/cmake/modules/DunePerftoolMacros.cmake +++ b/cmake/modules/DunePerftoolMacros.cmake @@ -64,12 +64,12 @@ file(GLOB_RECURSE UFL2PDELAB_SOURCES ${UFL2PDELAB_GLOB_PATTERN}) function(add_generated_executable) set(OPTIONS) set(SINGLE TARGET OPERATOR DRIVER UFLFILE) - set(MULTI FORM_COMPILER_FLAGS) + set(MULTI FORM_COMPILER_ARGS) include(CMakeParseArguments) cmake_parse_arguments(GEN "${OPTIONS}" "${SINGLE}" "${MULTI}" ${ARGN}) if(GEN_UNPARSED_ARGUMENTS) - message("Unrecognized arguments in add_generated_executable. This usually indicates a typo.") + message(FATAL_ERROR "Unrecognized arguments in add_generated_executable. This usually indicates a typo.") endif() # Apply defaults and enforce requirements -- GitLab