Salome HOME
merge from master
[tools/sat_salome.git] / products / patches / freetype-2.9.1_windows.patch
1 --- freetype_orig/CMakeLists.txt
2 +++ freetype_fix/CMakeLists.txt
3 @@ -234,6 +234,7 @@
4  endif ()
5  
6  
7 +
8  # Create the options file
9  file(READ "${PROJECT_SOURCE_DIR}/include/freetype/config/ftoption.h"
10    FTOPTION_H)
11 @@ -415,11 +418,18 @@
12        PATTERN "internal" EXCLUDE
13        PATTERN "ftconfig.h" EXCLUDE
14        PATTERN "ftoption.h" EXCLUDE)
15 -  install(
16 -    FILES ${PROJECT_BINARY_DIR}/include/freetype/config/ftconfig.h
17 -          ${PROJECT_BINARY_DIR}/include/freetype/config/ftoption.h
18 +  if (UNIX)
19 +    install(
20 +      FILES ${PROJECT_BINARY_DIR}/include/freetype/config/ftconfig.h
21 +            ${PROJECT_BINARY_DIR}/include/freetype/config/ftoption.h
22        DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/freetype2/freetype/config
23        COMPONENT headers)
24 +   elseif(WIN32)
25 +    install(
26 +      FILES ${PROJECT_BINARY_DIR}/include/freetype/config/ftoption.h
27 +      DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/freetype2/freetype/config
28 +      COMPONENT headers)
29 +   endif()
30  endif ()
31  
32  if (NOT SKIP_INSTALL_LIBRARIES AND NOT SKIP_INSTALL_ALL)