From d4b8ac5b499b2a109503937b34861a2e77c44fdd Mon Sep 17 00:00:00 2001 From: eroen Date: Fri, 15 Nov 2013 16:53:05 +0100 Subject: [PATCH] don't dpkg on windows and macos No need to clutter windows and macos configuration with dpkg options, as it is unlikely to ever be useful. --- CMakeLists.txt | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index b4d1a9a80..d36898400 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -50,10 +50,12 @@ option(USE_MPG123 "use mpg123 + libsndfile for sound" ON) # OS X deployment option(OPENMW_OSX_DEPLOYMENT OFF) -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) +if(UNIX AND NOT APPLE) + 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) +endif(UNIX AND NOT APPLE) # Location of morrowind data files if (APPLE)