Increase template depth to fix a bug with XCode 5 dev
authorDmitriy Morozov <dmitriy@mrzv.org>
Wed, 16 Oct 2013 09:58:02 -0700
branchdev
changeset 278 7479c3f0fc6b
parent 277 b4fd8880a09a
child 279 a125a3d9c723
Increase template depth to fix a bug with XCode 5
CMakeLists.txt
--- a/CMakeLists.txt	Fri Aug 09 15:08:23 2013 -0700
+++ b/CMakeLists.txt	Wed Oct 16 09:58:02 2013 -0700
@@ -48,6 +48,10 @@
 endif                       (debug)
 add_definitions             (${cxx_flags})
 
+# Fix the XCode bug
+add_definitions             (-ftemplate-depth=256)
+
+
 # Logging
 if                          (logging)
     find_library            (rlog_LIBRARY               NAMES rlog)
@@ -62,7 +66,6 @@
     add_definitions         (-DCOUNTERS)
 endif                       (counters)
 
-
 # Set includes
 include_directories         (${CMAKE_CURRENT_BINARY_DIR}
                              ${CMAKE_CURRENT_SOURCE_DIR}/include