only cpplint in debug builds to avoid python2 dependency

This commit is contained in:
Patrick Brosi 2019-04-01 21:56:52 +02:00
parent f6f1de05d2
commit a2e5b3be32

View file

@ -2,8 +2,13 @@ cmake_minimum_required (VERSION 2.8)
project (pfaedle) project (pfaedle)
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") set(CPPLINT "${CMAKE_SOURCE_DIR}/cpplint.py")
include(cmake/cpplint.cmake) include(cmake/cpplint.cmake)
endif()
set(CPPLINT_PROJECT_ROOT "src") set(CPPLINT_PROJECT_ROOT "src")