diff --git a/CMakeLists.txt b/CMakeLists.txt index 3163cf4..5016463 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -2,8 +2,13 @@ cmake_minimum_required (VERSION 2.8) project (pfaedle) -set(CPPLINT "${CMAKE_SOURCE_DIR}/cpplint.py") -include(cmake/cpplint.cmake) +if (CMAKE_BUILD_TYPE) + string(TOUPPER ${CMAKE_BUILD_TYPE} CMAKE_BUILD_TYPE) +endif() +if (CMAKE_BUILD_TYPE STREQUAL "DEBUG") + set(CPPLINT "${CMAKE_SOURCE_DIR}/cpplint.py") + include(cmake/cpplint.cmake) +endif() set(CPPLINT_PROJECT_ROOT "src")