only cpplint in debug builds to avoid python2 dependency
This commit is contained in:
parent
f6f1de05d2
commit
a2e5b3be32
1 changed files with 7 additions and 2 deletions
|
@ -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")
|
||||
|
||||
|
|
Loading…
Reference in a new issue