Skip to content

Commit e357a0b

Browse files
Ralph UrlusRUrlus
authored andcommitted
BLD: Include clang format target under DEV_MODE
1 parent 6897600 commit e357a0b

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

cmake/ClangFormatTarget.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Clang-format #
33
# ##############################################################################
44
## search for clang-format and add target
5-
IF(NOT DEFINED CARMA_DEV_TARGET OR CARMA_DEV_TARGET)
5+
IF(DEFINED CARMA_DEV_TARGET)
66
FIND_PROGRAM(CLANG_FORMAT clang-format)
77
IF (CLANG_FORMAT)
88
EXEC_PROGRAM(

cmake/ParseOptions.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ IF (DEV_MODE OR DEV_DEBUG_MODE)
88
SET(BUILD_TESTS ON)
99
SET(CMAKE_EXPORT_COMPILE_COMMANDS 1)
1010
SET(CMAKE_INSTALL_PREFIX ${PROJECT_SOURCE_DIR}/build)
11+
SET(CARMA_DEV_TARGET ON)
1112
ENDIF ()
1213

1314
IF (ENABLE_ARMA_EXTRA_DEBUG)

0 commit comments

Comments
 (0)