Browse Source

Made freetype's CMakeLists.txt work with megasource.

Alex Szpakowski 10 years ago
parent
commit
384b61b8bd
1 changed files with 5 additions and 1 deletions
  1. 5 1
      libs/freetype-2.6.2/CMakeLists.txt

+ 5 - 1
libs/freetype-2.6.2/CMakeLists.txt

@@ -353,7 +353,7 @@ endif ()
 
 if (NOT CMAKE_VERSION VERSION_LESS 2.8.11)
   target_include_directories(freetype
-    PUBLIC $<INSTALL_INTERFACE:include/freetype2>)
+    PUBLIC include)
 endif ()
 
 if (CMAKE_VERSION VERSION_LESS 2.8.12)
@@ -381,6 +381,7 @@ if (HARFBUZZ_FOUND)
 endif ()
 
 
+if (NOT MEGA)
 # Installations
 # Note the trailing slash in the argument to the `DIRECTORY' directive
 install(DIRECTORY ${PROJECT_SOURCE_DIR}/include/
@@ -433,4 +434,7 @@ if (NOT DEFINED FREETYPE_NO_DIST)
   add_custom_target(dist COMMAND ${CMAKE_MAKE_PROGRAM} package_source)
 endif ()
 
+
+endif() # NOT MEGA
+
 # eof