diff --git a/CMakeLists.txt b/CMakeLists.txt index a10b074..26d98f6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -78,6 +78,15 @@ option(MARS_NWE_INSTALL_DOSUTILS "Install DOS client utilities" ON) option(MARS_NWE_INSTALL_NEW_DOSUTILS "Install the new/experimental DOS client utilities instead of legacy netold.exe" OFF) option(MARS_NWE_BUILD_TESTS "Build optional mars_nwe integration tests" OFF) +# Maintainer builds rebuild the DOS tools from source. In that mode install +# the freshly built/new DOS utility set automatically so developers do not have +# to set both MAINTAINER_BUILD and MARS_NWE_INSTALL_NEW_DOSUTILS. +if(MAINTAINER_BUILD AND NOT MARS_NWE_INSTALL_NEW_DOSUTILS) + set(MARS_NWE_INSTALL_NEW_DOSUTILS ON CACHE BOOL + "Install the new/experimental DOS client utilities instead of legacy netold.exe" + FORCE) +endif() + set(MARS_NWE_SMART_ADMIN_GROUP "root" CACHE STRING "Unix group allowed to log in to the SMArT/nwwebui admin interface")