Skip to content

Commit

Permalink
Don't build documentation by default for freetype-gl
Browse files Browse the repository at this point in the history
  • Loading branch information
dpaulat committed Sep 22, 2023
1 parent d7a3a3c commit 48518f0
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions external/freetype-gl.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ set(freetype-gl_WITH_GLEW ON)
set(freetype-gl_WITH_GLAD OFF)
set(freetype-gl_USE_VAO ON)
set(freetype-gl_BUILD_DEMOS OFF)
set(freetype-gl_BUILD_APIDOC ON)
set(freetype-gl_BUILD_APIDOC OFF)
set(freetype-gl_BUILD_HARFBUZZ OFF)
set(freetype-gl_BUILD_MAKEFONT ON)
set(freetype-gl_BUILD_TESTS OFF)
Expand Down Expand Up @@ -110,9 +110,12 @@ target_include_directories(makefont PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/freet

set(FTGL_INCLUDE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/freetype-gl PARENT_SCOPE)

set_target_properties(doc PROPERTIES EXCLUDE_FROM_ALL True)
set_target_properties(makefont PROPERTIES EXCLUDE_FROM_ALL True)

set_target_properties(freetype-gl PROPERTIES FOLDER ftgl)
set_target_properties(makefont PROPERTIES FOLDER ftgl)
set_target_properties(doc PROPERTIES FOLDER ftgl)

if(freetype-gl_BUILD_APIDOC)
set_target_properties(doc PROPERTIES EXCLUDE_FROM_ALL True)
set_target_properties(doc PROPERTIES FOLDER ftgl)
endif()

0 comments on commit 48518f0

Please sign in to comment.