From c5279d7c77daa2ca9fe7ca0704b8d448a74c6c66 Mon Sep 17 00:00:00 2001 From: Christian Schneider Date: Thu, 20 Aug 2020 21:07:48 +0200 Subject: [PATCH 1/3] Show CMake debug build and warn if it is overwritten --- CMakeLists.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index e8caf31..799d907 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -7,6 +7,9 @@ set(OBJDIR ${CMAKE_CURRENT_BINARY_DIR}) if (NOT CMAKE_BUILD_TYPE) set(CMAKE_BUILD_TYPE Release) + message(STATUS "Build type: Release") +else() + message(WARNING "CMake build type is set to ${CMAKE_BUILD_TYPE}! This might result in bad performance!") endif() if (UNIX) @@ -156,4 +159,4 @@ if (UNIX) target_link_libraries(precomp Threads::Threads) endif() -install(TARGETS precomp DESTINATION bin) \ No newline at end of file +install(TARGETS precomp DESTINATION bin) From 1993c83173021d47df49684dcf262d03d9218a27 Mon Sep 17 00:00:00 2001 From: Christian Schneider Date: Tue, 15 Sep 2020 23:36:42 +0200 Subject: [PATCH 2/3] Update travis badge Migration from travis-ci.org to travis-ci.com --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index c38fe59..4f82c5c 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ Precomp ======= [![Join the chat at https://gitter.im/schnaader/precomp-cpp](https://badges.gitter.im/schnaader/precomp-cpp.svg)](https://gitter.im/schnaader/precomp-cpp?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) -[![Build Status](https://travis-ci.org/schnaader/precomp-cpp.svg?branch=master)](https://travis-ci.org/schnaader/precomp-cpp) +[![Build Status](https://travis-ci.com/schnaader/precomp-cpp.svg?branch=master)](https://travis-ci.com/schnaader/precomp-cpp) [![Build status](https://ci.appveyor.com/api/projects/status/noofdvr23uk2oyyi/branch/master?svg=true)](https://ci.appveyor.com/project/schnaader/precomp-cpp) [![Packaging status](https://repology.org/badge/vertical-allrepos/precomp.svg)](https://repology.org/metapackage/precomp) From 9a4878932381148b7a702fc64f6d15afafedafb9 Mon Sep 17 00:00:00 2001 From: Christian Schneider Date: Thu, 1 Oct 2020 15:28:08 +0200 Subject: [PATCH 3/3] Improve CMakeLists to not warn if build type was manually set to Release --- CMakeLists.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 799d907..dbc0829 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -9,7 +9,11 @@ if (NOT CMAKE_BUILD_TYPE) set(CMAKE_BUILD_TYPE Release) message(STATUS "Build type: Release") else() - message(WARNING "CMake build type is set to ${CMAKE_BUILD_TYPE}! This might result in bad performance!") + if (NOT CMAKE_BUILD_TYPE STREQUAL "Release") + message(WARNING "CMake build type is set to ${CMAKE_BUILD_TYPE}! This might result in bad performance!") + else() + message(STATUS "Build type: Release") + endif() endif() if (UNIX)