From: maier Date: Wed, 27 Mar 2013 11:13:38 +0000 (+0000) Subject: CMake: Workaround a bug in CMake's XCode generator X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=064d06bbec3b2fd9cb276c5b8e79777e8d5a5a0f;p=dealii-svn.git CMake: Workaround a bug in CMake's XCode generator git-svn-id: https://svn.dealii.org/trunk@29058 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/source/CMakeLists.txt b/deal.II/source/CMakeLists.txt index a1c5e0ed7a..0e0b4b045c 100644 --- a/deal.II/source/CMakeLists.txt +++ b/deal.II/source/CMakeLists.txt @@ -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}} ) diff --git a/deal.II/source/base/CMakeLists.txt b/deal.II/source/base/CMakeLists.txt index 3958f050e8..991c7e9557 100644 --- a/deal.II/source/base/CMakeLists.txt +++ b/deal.II/source/base/CMakeLists.txt @@ -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 index 0000000000..aa82ba52fe --- /dev/null +++ b/deal.II/source/base/dummy.cc @@ -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; +