From add66c48bc99847378a6bdf9c98aaf3fcd1f6118 Mon Sep 17 00:00:00 2001 From: Murad Date: Wed, 10 Nov 2021 16:06:06 +0300 Subject: [PATCH] do not default to Debug build type Also point occasional users to build with Release build type. --- CMakeLists.txt | 4 ---- README.md | 4 ++-- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index d695122..3039371 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -2,10 +2,6 @@ cmake_minimum_required( VERSION 3.1.3 ) project(maim VERSION 5.7.4 LANGUAGES CXX) -if(NOT CMAKE_BUILD_TYPE) - set(CMAKE_BUILD_TYPE "Debug") -endif() - if(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT) set(CMAKE_INSTALL_PREFIX "/usr" CACHE PATH "..." FORCE) endif() diff --git a/README.md b/README.md index 36689f9..d7d9de2 100644 --- a/README.md +++ b/README.md @@ -41,12 +41,12 @@ maim (Make Image) is a utility that takes screenshots of your desktop. It's mean ```bash git clone https://github.com/naelstrof/slop.git cd slop -cmake -DCMAKE_INSTALL_PREFIX="/usr" ./ +cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="/usr" ./ make && sudo make install cd .. git clone https://github.com/naelstrof/maim.git cd maim -cmake -DCMAKE_INSTALL_PREFIX="/usr" ./ +cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="/usr" ./ make && sudo make install ```