mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-19 21:53:51 +00:00
Introduce -DBUILD_WITH_DPKG to toggle dpkg based install
The current system automagically chooses between the dpkg-based install method (for debian-derived distributions) and a "traditional" install and sets install paths based on whether cmake can find a 'dpkg' executable. This is not ideal, since dpkg is occasionally installed on linux distributions unrelated to debian for purposes other than package management. In particular, Arch and Gentoo carry it in their repositories.
This commit is contained in:
parent
d619d0fa25
commit
67284e2f9d
1 changed files with 4 additions and 1 deletions
|
@ -50,7 +50,10 @@ option(USE_MPG123 "use mpg123 + libsndfile for sound" ON)
|
||||||
# OS X deployment
|
# OS X deployment
|
||||||
option(OPENMW_OSX_DEPLOYMENT OFF)
|
option(OPENMW_OSX_DEPLOYMENT OFF)
|
||||||
|
|
||||||
find_program(DPKG_PROGRAM dpkg DOC "dpkg program of Debian-based systems")
|
option(BUILD_WITH_DPKG "enable dpkg-based install for debian and debian derivatives" OFF)
|
||||||
|
if(BUILD_WITH_DPKG)
|
||||||
|
find_program(DPKG_PROGRAM dpkg DOC "dpkg program of Debian-based systems")
|
||||||
|
endif(BUILD_WITH_DPKG)
|
||||||
|
|
||||||
# Location of morrowind data files
|
# Location of morrowind data files
|
||||||
if (APPLE)
|
if (APPLE)
|
||||||
|
|
Loading…
Reference in a new issue