Skip to content

Commit

Permalink
Added ability to customize HTTP server module installation directory (o…
Browse files Browse the repository at this point in the history
  • Loading branch information
hummeltech authored Jul 20, 2023
1 parent 7085275 commit fbf4c7e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ set(THREADS_PREFER_PTHREAD_FLAG ON)

set(ENABLE_MAN ON CACHE BOOL "Build man pages")
set(ENABLE_TESTS OFF CACHE BOOL "Build test suite")
set(CMAKE_INSTALL_MODULESDIR CACHE PATH "Apache HTTP Server module installation directory")

#-----------------------------------------------------------------------------
#
Expand Down Expand Up @@ -105,6 +106,10 @@ execute_process(COMMAND ${APXS_EXECUTABLE} -q exp_libexecdir
OUTPUT_STRIP_TRAILING_WHITESPACE
)

if(NOT CMAKE_INSTALL_MODULESDIR)
set(CMAKE_INSTALL_MODULESDIR ${HTTPD_MODULES_DIR})
endif()

if(Cairo_FOUND)
set(HAVE_CAIRO 1)
endif()
Expand Down Expand Up @@ -160,7 +165,7 @@ install(
render_old
render_speedtest
renderd
LIBRARY DESTINATION ${HTTPD_MODULES_DIR}
LIBRARY DESTINATION ${CMAKE_INSTALL_MODULESDIR}
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
)

Expand Down

0 comments on commit fbf4c7e

Please sign in to comment.