File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ set(THREADS_PREFER_PTHREAD_FLAG ON)
2323
2424set (ENABLE_MAN ON CACHE BOOL "Build man pages" )
2525set (ENABLE_TESTS OFF CACHE BOOL "Build test suite" )
26+ set (CMAKE_INSTALL_MODULESDIR CACHE PATH "Apache HTTP Server module installation directory" )
2627
2728#-----------------------------------------------------------------------------
2829#
@@ -105,6 +106,10 @@ execute_process(COMMAND ${APXS_EXECUTABLE} -q exp_libexecdir
105106 OUTPUT_STRIP_TRAILING_WHITESPACE
106107)
107108
109+ if (NOT CMAKE_INSTALL_MODULESDIR)
110+ set (CMAKE_INSTALL_MODULESDIR ${HTTPD_MODULES_DIR} )
111+ endif ()
112+
108113if (Cairo_FOUND)
109114 set (HAVE_CAIRO 1)
110115endif ()
@@ -160,7 +165,7 @@ install(
160165 render_old
161166 render_speedtest
162167 renderd
163- LIBRARY DESTINATION ${HTTPD_MODULES_DIR }
168+ LIBRARY DESTINATION ${CMAKE_INSTALL_MODULESDIR }
164169 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
165170)
166171
You can’t perform that action at this time.
0 commit comments