mirror of
https://github.com/nextcloud/desktop.git
synced 2025-10-26 11:17:43 +00:00
Handle SYSCONFDIR correctly
This commit is contained in:
parent
c03c112193
commit
2cf667f055
@ -4,7 +4,12 @@ project(mirall)
|
||||
set(PACKAGE "mirall")
|
||||
set( CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/modules )
|
||||
include(${CMAKE_SOURCE_DIR}/VERSION.cmake)
|
||||
|
||||
include(GNUInstallDirs)
|
||||
## stupid, we should upstream this
|
||||
if("${CMAKE_INSTALL_PREFIX}" EQUAL "/usr")
|
||||
set(CMAKE_INSTALL_SYSCONFDIR "/etc")
|
||||
endif()
|
||||
|
||||
if(NOT DEFINED BUILD_OWNCLOUD_OSX_BUNDLE OR NOT APPLE)
|
||||
set(BUILD_OWNCLOUD_OSX_BUNDLE OFF)
|
||||
@ -65,6 +70,6 @@ add_subdirectory(src)
|
||||
if(BUILD_OWNCLOUD_OSX_BUNDLE)
|
||||
install( FILES exclude.lst DESTINATION ${OWNCLOUD_OSX_BUNDLE}/Contents/Resources )
|
||||
else()
|
||||
install( FILES exclude.lst DESTINATION /etc )
|
||||
install( FILES exclude.lst DESTINATION ${CMAKE_INSTALL_SYSCONFDIR} )
|
||||
endif()
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user