Browse Source

Fix Xcode AssetImpoter linker error caused by both freetype and assimp emitting same symbols.

Yao Wei Tjong 姚伟忠 12 years ago
parent
commit
9070746b56
1 changed files with 5 additions and 0 deletions
  1. 5 0
      Source/ThirdParty/FreeType/CMakeLists.txt

+ 5 - 0
Source/ThirdParty/FreeType/CMakeLists.txt

@@ -3,6 +3,11 @@ set (TARGET_NAME FreeType)
 
 
 add_definitions (-DFT2_BUILD_LIBRARY)
 add_definitions (-DFT2_BUILD_LIBRARY)
 
 
+# Rename z_verbose and z_error symbols to prevent Xcode duplicate symbol linker error (clash with Assimp) on debug build
+if (XCODE)
+    add_definitions (-Dz_verbose=ft2_z_verbose -Dz_error=ft2_z_error)
+endif ()
+
 # Define source files
 # Define source files
 set (SOURCE_FILES
 set (SOURCE_FILES
     src/autofit/autofit.c
     src/autofit/autofit.c