ref: 606c74f6d6cb7de40874322f081b9455e59629f2
parent: cc7cf2c3d04a9ea9959c0cd37cb4275e67a5d7a8
author: Werner Lemberg <[email protected]>
date: Wed Mar 19 19:46:42 EDT 2014
CMakeLists.txt: Fix include directories. Problem reported by Taylor Holberton <[email protected]>.
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -48,19 +48,19 @@
add_definitions(-DFT2_BUILD_LIBRARY)
# Specify library include directories
-include_directories("${PROJECT_SOURCE_DIR}/include")
+include_directories("${PROJECT_SOURCE_DIR}/include/freetype2")
# Create the configuration file
-message(STATUS "Creating directory, ${PROJECT_BINARY_DIR}/include.")
-file(MAKE_DIRECTORY ${PROJECT_BINARY_DIR}/include)
+message(STATUS "Creating directory, ${PROJECT_BINARY_DIR}/include/freetype2.")
+file(MAKE_DIRECTORY ${PROJECT_BINARY_DIR}/include/freetype2)
# For the auto-generated ftconfig.h file
-include_directories("${PROJECT_BINARY_DIR}/include")
-message(STATUS "Creating ${PROJECT_BINARY_DIR}/include/ftconfig.h.")
+include_directories(BEFORE "${PROJECT_BINARY_DIR}/include/freetype2")
+message(STATUS "Creating ${PROJECT_BINARY_DIR}/include/freetype2/ftconfig.h.")
execute_process(
COMMAND sed -e "s/FT_CONFIG_OPTIONS_H/<ftoption.h>/" -e "s/FT_CONFIG_STANDARD_LIBRARY_H/<ftstdlib.h>/" -e "s?/undef ?#undef ?"
INPUT_FILE ${PROJECT_SOURCE_DIR}/builds/unix/ftconfig.in
- OUTPUT_FILE ${PROJECT_BINARY_DIR}/include/ftconfig.h
+ OUTPUT_FILE ${PROJECT_BINARY_DIR}/include/freetype2/ftconfig.h
)
set(BASE_SRCS
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
2014-03-19 Werner Lemberg <[email protected]>
+ CMakeLists.txt: Fix include directories.
+
+ Problem reported by Taylor Holberton <[email protected]>.
+
+2014-03-19 Werner Lemberg <[email protected]>
+
Partially revert last commit.
Found by Alexei.