From 249b5fe2f62031eec94db19a5c2872e591d2f7cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julian=20Frohm=C3=BCller?= Date: Mon, 24 Oct 2022 11:54:59 +0200 Subject: [PATCH] Minor changes to build system. --- CMakeLists.txt | 8 +++++++- res/opensuperclone.desktop | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 71676f5..1901191 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -5,10 +5,16 @@ if (${CMAKE_SOURCE_DIR} STREQUAL ${CMAKE_BINARY_DIR}) message(FATAL_ERROR “In-source builds not allowed! Create a build directory and run CMake from there.”) endif() +# Force a default build type if none was specified +if(NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES) + message(STATUS "Setting build type to Release as none was specified.") + set(CMAKE_BUILD_TYPE "Release" CACHE STRING "Choose the type of build." FORCE) +endif() + # OpenSuperClone version 2.4 project(OpenSuperClone VERSION 2.4 - DESCRIPTION "Advanced disk utility" + DESCRIPTION "Advanced disk cloning utility" HOMEPAGE_URL "https://github.com/ISpillMyDrink/OpenSuperClone" LANGUAGES C ) diff --git a/res/opensuperclone.desktop b/res/opensuperclone.desktop index 81b4f55..0254005 100644 --- a/res/opensuperclone.desktop +++ b/res/opensuperclone.desktop @@ -1,6 +1,6 @@ [Desktop Entry] Name=OpenSuperClone -Comment=Advanced disk utility +Comment=Advanced disk cloning utility Exec=sudo opensuperclone Terminal=true Type=Application