Skip to content

Commit

Permalink
Added option to disable the installer
Browse files Browse the repository at this point in the history
  • Loading branch information
Semphris committed Apr 15, 2022
1 parent 81f9e9b commit 1c3272d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CMakeLists.txt
Expand Up @@ -93,6 +93,9 @@ target_include_directories(SDL2_ttf
PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>
)

option(SDL2_TTF_DISABLE_INSTALL "Disable installing SDL2_ttf" OFF)
if (NOT SDL2_TTF_DISABLE_INSTALL)

install(
TARGETS SDL2_ttf
EXPORT SDL2_ttfTargets
Expand Down Expand Up @@ -154,4 +157,6 @@ if (PKG_CONFIG_FOUND)
endif ()
endif ()

endif (NOT SDL2_TTF_DISABLE_INSTALL)

endif()

0 comments on commit 1c3272d

Please sign in to comment.