]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
fix __PRETTY_FUNCTION__ for compilers that do not understand it
authorheister <heister@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 20 Feb 2013 00:57:20 +0000 (00:57 +0000)
committerheister <heister@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 20 Feb 2013 00:57:20 +0000 (00:57 +0000)
git-svn-id: https://svn.dealii.org/branches/branch_cmake@28486 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/cmake/checks/check_01_compiler_features.cmake

index 3a4bb1c63913be7d2a5250b29f750828ef404138..1791b0df417e8264d424093385a9b10d63d25289 100644 (file)
@@ -250,9 +250,9 @@ IF(NOT DEAL_II_COMPILER_HAS_ATTRIBUTE_PRETTY_FUNCTION)
     DEAL_II_COMPILER_HAS_ATTRIBUTE_FUNC)
 
   IF(DEAL_II_COMPILER_HAS_ATTRIBUTE_FUNC)
-    SET(__PRETTY_FUNCTION__ "__func")
+    SET(__PRETTY_FUNCTION__ "__func__")
   ELSE()
-    SET(__PRETTY_FUNCTION__ "(not available)")
+    SET(__PRETTY_FUNCTION__ "\"(not available)\"")
   ENDIF()
 
 ENDIF()

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.