@ -215,14 +215,17 @@ if (UNIX)
endif ( )
string ( REPLACE "/undef " "#undef "
F T C O N F I G _ H " $ { F T C O N F I G _ H } " )
file ( WRITE "${PROJECT_BINARY_DIR}/include/freetype/config/ftconfig.h"
file ( WRITE "${PROJECT_BINARY_DIR}/include/freetype/config/ftconfig.h-new "
" $ { F T C O N F I G _ H } " )
else ( )
file ( READ "${PROJECT_SOURCE_DIR}/include/freetype/config/ftconfig.h"
F T C O N F I G _ H )
file ( WRITE "${PROJECT_BINARY_DIR}/include/freetype/config/ftconfig.h"
file ( WRITE "${PROJECT_BINARY_DIR}/include/freetype/config/ftconfig.h-new "
" $ { F T C O N F I G _ H } " )
endif ( )
execute_process ( COMMAND ${ CMAKE_COMMAND } -E copy_if_different
" $ { P R O J E C T _ B I N A R Y _ D I R } / i n c l u d e / f r e e t y p e / c o n f i g / f t c o n f i g . h - n e w "
" $ { P R O J E C T _ B I N A R Y _ D I R } / i n c l u d e / f r e e t y p e / c o n f i g / f t c o n f i g . h " )
# C r e a t e t h e o p t i o n s f i l e
@ -251,8 +254,11 @@ if (HARFBUZZ_FOUND)
" / \ \ * + ( # d e f i n e + F T _ C O N F I G _ O P T I O N _ U S E _ H A R F B U Z Z ) + \ \ * / " " \ \ 1 "
F T O P T I O N _ H " $ { F T O P T I O N _ H } " )
endif ( )
file ( WRITE "${PROJECT_BINARY_DIR}/include/freetype/config/ftoption.h"
file ( WRITE "${PROJECT_BINARY_DIR}/include/freetype/config/ftoption.h-new "
" $ { F T O P T I O N _ H } " )
execute_process ( COMMAND ${ CMAKE_COMMAND } -E copy_if_different
" $ { P R O J E C T _ B I N A R Y _ D I R } / i n c l u d e / f r e e t y p e / c o n f i g / f t o p t i o n . h - n e w "
" $ { P R O J E C T _ B I N A R Y _ D I R } / i n c l u d e / f r e e t y p e / c o n f i g / f t o p t i o n . h " )
# S p e c i f y l i b r a r y i n c l u d e d i r e c t o r i e s