Install all /var directories

The /var/lib/maxscale directory wasn't installed and tarballs didn't have
any /var directories.
This commit is contained in:
Markus Makela
2016-09-21 09:40:15 +03:00
parent ba2cafc65e
commit f6888ef205
2 changed files with 8 additions and 1 deletions

View File

@ -370,8 +370,9 @@ endif()
# NOTE: If you make changes here, ensure they are compatible with the
# situation in gwdirs.h.in.
if (NOT CMAKE_INSTALL_PREFIX EQUAL "/usr")
if (NOT PACKAGE)
install(DIRECTORY DESTINATION var/cache/maxscale)
install(DIRECTORY DESTINATION var/log/maxscale)
install(DIRECTORY DESTINATION var/run/maxscale)
install(DIRECTORY DESTINATION var/lib/maxscale)
endif()