]> https://gitweb.dealii.org/ - dealii.git/commitdiff
GMSH_EXECUTABLE -> DEAL_II_GMSH_EXECUTABLE_PATH 5583/head
authorLuca Heltai <luca.heltai@sissa.it>
Wed, 6 Dec 2017 13:10:10 +0000 (14:10 +0100)
committerLuca Heltai <luca.heltai@sissa.it>
Mon, 11 Dec 2017 09:59:52 +0000 (10:59 +0100)
Now the definition stores directly a string, so that is immediately
accessible, without the need to STRINGIFY it.

include/deal.II/base/config.h.in
tests/gmsh/create_tria_01.cc

index cb6b5c4a70d6f20fed29fbd1ffd7e90b07e1f06b..9c6f991cbba23d19a3e48188755c938aae0e1c44 100644 (file)
  * gmsh:
  */
 #ifdef DEAL_II_WITH_GMSH
-#  define GMSH_EXECUTABLE @GMSH_EXECUTABLE@
+#  define DEAL_II_GMSH_EXECUTABLE_PATH "@GMSH_EXECUTABLE@"
 #endif
 
 /*
index 96327afe6433bc8e2d0191dbd5cf77f658960964..41ed72b2c80026675071b42e7c3871022901829e 100644 (file)
@@ -14,9 +14,6 @@
 
 #include "../tests.h"
 
-#define STRINGIFY(x) #x
-#define TOSTRING(x) STRINGIFY(x)
-
 int main ()
 {
   initlog();
@@ -39,7 +36,7 @@ int main ()
 
   geo.close();
 
-  std::system(TOSTRING(GMSH_EXECUTABLE) " -2 file.geo 1>file.log 2>file_warn.log");
+  std::system(DEAL_II_GMSH_EXECUTABLE_PATH " -2 file.geo 1>file.log 2>file_warn.log");
 
   cat_file("file.msh");
 

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.