]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
CMake: Workaround a bug in CMake's XCode generator
authormaier <maier@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 27 Mar 2013 11:13:38 +0000 (11:13 +0000)
committermaier <maier@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 27 Mar 2013 11:13:38 +0000 (11:13 +0000)
git-svn-id: https://svn.dealii.org/trunk@29058 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/source/CMakeLists.txt
deal.II/source/base/CMakeLists.txt
deal.II/source/base/dummy.cc [new file with mode: 0644]

index a1c5e0ed7a71de79a60ef6a6df214cb7c5ab35fc..0e0b4b045c15a3835e9fd6ba0c812acbff01ed07 100644 (file)
@@ -55,6 +55,7 @@ FOREACH(build ${DEAL_II_BUILD_TYPES})
     deal_ii_objects_${build_lowercase}
     )
   ADD_LIBRARY(${DEAL_II_BASE_NAME}${DEAL_II_${build}_SUFFIX}
+    base/dummy.cc # Workaround for a bug in the Xcode generator
     ${deal_ii_objects_${build_lowercase}}
     )
 
index 3958f050e86de0fd06cfe394e000974d749fce10..991c7e95577798b7cab67a42acf8b0bdad443965 100644 (file)
@@ -20,6 +20,7 @@ SET(src_base
   config.cc
   convergence_table.cc
   data_out_base.cc
+  # do NOT include dummy.cc
   event.cc
   exceptions.cc
   flow_function.cc
diff --git a/deal.II/source/base/dummy.cc b/deal.II/source/base/dummy.cc
new file mode 100644 (file)
index 0000000..aa82ba5
--- /dev/null
@@ -0,0 +1,9 @@
+/*
+ * Workaround for a bug in the Xcode generator.
+ *
+ * This file contains a dummy global symbol to trigger the link phase in
+ * the generated Xcode project.
+ */
+
+const int _global_symbol_42 = 42;
+

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.