From: maier Date: Thu, 17 Jul 2014 07:34:24 +0000 (+0000) Subject: CMake: Bugfix: Generate options for test subprojects as a list X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ef35430b4bbdb49d831c8faa3a135ebd9c2efbab;p=dealii-svn.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()