Fix SYSCONFIGDIR install of the sync-exclude file.

This commit is contained in:
Klaas Freitag 2012-10-05 22:47:08 +02:00
parent 06b2e1f645
commit aa56d1ebea

View File

@ -16,7 +16,7 @@ include_directories(BEFORE "${CMAKE_CURRENT_BINARY_DIR}/src/mirall/")
include(GNUInstallDirs)
## stupid, we should upstream this
if("${CMAKE_INSTALL_PREFIX}" STREQUAL "/usr")
if("${CMAKE_INSTALL_PREFIX}" STREQUAL "/usr" AND NOT CMAKE_INSTALL_SYSCONFIGDIR)
set(CMAKE_INSTALL_SYSCONFDIR "/etc")
endif()