]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Revert "Testsuite: Reenable compiler version injection on non Linux platforms"
authorMatthias Maier <tamiko@kyomu.43-1.org>
Fri, 6 Dec 2013 16:11:49 +0000 (16:11 +0000)
committerMatthias Maier <tamiko@kyomu.43-1.org>
Fri, 6 Dec 2013 16:11:49 +0000 (16:11 +0000)
git-svn-id: https://svn.dealii.org/trunk@31912 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/cmake/scripts/run_testsuite.cmake

index 0657ea3e30d3c284b2890c01f526648d7127190d..f4605d67600b3048edb419619c4d71c7637c8032 100644 (file)
@@ -582,21 +582,27 @@ Unable to determine test submission files from TAG. Bailing out.
     )
 ENDIF()
 
-
-FILE(GLOB _xml_files ${_path}/*.xml)
-EXECUTE_PROCESS(COMMAND sed -i -e
-  s/CompilerName=\\"\\"/CompilerName=\\"${_compiler_name}\\"\\n\\tCompilerVersion=\\"${_compiler_version}\\"/g
-  ${_xml_files}
-  OUTPUT_QUIET RESULT_VARIABLE  _res
-  )
-IF(NOT "${_res}" STREQUAL "0")
-  MESSAGE(FATAL_ERROR "
-\"sed\" failed. Bailing out.
-"
+IF(CMAKE_SYSTEM_NAME MATCHES "Linux")
+  #
+  # Only use the following sed command on GNU userlands:
+  #
+  # TODO: Come up with a more robust way to inject this that also works on
+  # BSD and Mac
+  #
+  FILE(GLOB _xml_files ${_path}/*.xml)
+  EXECUTE_PROCESS(COMMAND sed -i -e
+    s/CompilerName=\\"\\"/CompilerName=\\"${_compiler_name}\\"\\n\\tCompilerVersion=\\"${_compiler_version}\\"/g
+    ${_xml_files}
+    OUTPUT_QUIET RESULT_VARIABLE  _res
     )
+  IF(NOT "${_res}" STREQUAL "0")
+    MESSAGE(FATAL_ERROR "
+  \"sed\" failed. Bailing out.
+  "
+      )
+  ENDIF()
 ENDIF()
 
-
 IF(NOT "${_svn_WC_REVISION}" STREQUAL "")
   FILE(WRITE ${_path}/Update.xml
 "<?xml version=\"1.0\" encoding=\"UTF-8\"?>

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.