From: Matthias Maier Date: Thu, 17 Jul 2014 07:34:24 +0000 (+0000) Subject: CMake: Bugfix: Generate options for test subprojects as a list X-Git-Tag: v8.2.0-rc1~286 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b700c45cf9fdfa23f322f5c720420a46ecf7a98d;p=dealii.git CMake: Bugfix: Generate options for test subprojects as a list git-svn-id: https://svn.dealii.org/trunk@33187 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/tests/CMakeLists.txt b/deal.II/tests/CMakeLists.txt index 56711611e5..a42a1f6bda 100644 --- a/deal.II/tests/CMakeLists.txt +++ b/deal.II/tests/CMakeLists.txt @@ -54,9 +54,9 @@ FOREACH(_var DIFF_DIR NUMDIFF_DIR TEST_DIFF TEST_PICKUP_REGEX TEST_TIME_LIMIT MPIEXEC MPIEXEC_NUMPROC_FLAG MPIEXEC_PREFLAGS MPIEXEC_POSTFLAGS ) - ADD_FLAGS(_options "-U${_var}") + LIST(APPEND _options "-U${_var}") IF(DEFINED ${_var}) - ADD_FLAGS(_options "-D${_var}=${${_var}}") + LIST(APPEND _options "-D${_var}=${${_var}}") ENDIF() ENDFOREACH()