diff --git a/CMakeLists.txt b/CMakeLists.txt index e8caf31..dbc0829 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -7,6 +7,13 @@ set(OBJDIR ${CMAKE_CURRENT_BINARY_DIR}) if (NOT CMAKE_BUILD_TYPE) set(CMAKE_BUILD_TYPE Release) + message(STATUS "Build type: Release") +else() + 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) @@ -156,4 +163,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) 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)