Skip to content

Commit a81cabc

Browse files
committed
fix issues with ci tests
1 parent e09467d commit a81cabc

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

cmake/Macros.cmake

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,16 +41,17 @@ macro(hpcReact_add_code_checks)
4141
--suppress=noExplicitConstructor
4242
--suppress=unusedFunction
4343
--suppress=constStatement
44-
--suppress=unusedStructMember )
44+
--suppress=unusedStructMember
45+
-I../hpcReact/src )
4546

46-
if( ENABLE_UNCRUSTIFY )
47+
if( UNCRUSTIFY_FOUND )
4748
blt_add_code_checks( PREFIX ${arg_PREFIX}
4849
SOURCES ${_sources}
4950
UNCRUSTIFY_CFG_FILE ${PROJECT_SOURCE_DIR}/src/uncrustify.cfg
5051
CPPCHECK_FLAGS ${CPPCHECK_FLAGS}
5152
)
5253
add_test( NAME testUncrustifyCheck
53-
COMMAND sh -c "${CMAKE_MAKE_PROGRAM} uncrustify_check 2> >(tee uncrustify.err) >/dev/null && exit $(cat uncrustify.err | wc -l)"
54+
COMMAND bash -c "${CMAKE_MAKE_PROGRAM} uncrustify_check 2> >(tee uncrustify.err) >/dev/null && exit $(cat uncrustify.err | wc -l)"
5455
WORKING_DIRECTORY ${CMAKE_BINARY_DIR} )
5556
endif()
5657

src/reactions/bulkGeneric/Parameters.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1+
12
#pragma once
23

34
#include "common/constants.hpp"
45
#include "common/CArrayWrapper.hpp"
6+
#include "common/macros.hpp"
57

68
#include <stdexcept>
79
#include <string>

0 commit comments

Comments
 (0)