File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 17
17
cmake -S test -B build/ \
18
18
-G "Unix Makefiles" \
19
19
-DCMAKE_BUILD_TYPE=Debug \
20
- -DBUILD_UNIT_TESTS =ON \
20
+ -DUNITTEST =ON \
21
21
-DCMAKE_C_FLAGS='--coverage -Wall -Wextra -Werror'
22
22
make -C build/ all
23
23
- name : Test
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ set( UNIT_TEST_DIR ${MODULE_ROOT_DIR}/test/unit-test CACHE INTERNAL "backoffAlgo
22
22
set ( UNITY_DIR ${UNIT_TEST_DIR} /Unity CACHE INTERNAL "Unity library source directory." )
23
23
24
24
# Configure options to always show in CMake GUI.
25
- option ( BUILD_UNIT_TESTS
25
+ option ( UNITTEST
26
26
"Set this to ON to build unit tests. This will clone the required Unity test framework submodule if it is not cloned already."
27
27
OFF )
28
28
@@ -62,7 +62,7 @@ endif()
62
62
63
63
# ==================================== Unit Test Configuration ====================================
64
64
65
- if (${BUILD_UNIT_TESTS } )
65
+ if (${UNITTEST } )
66
66
67
67
# Include Unity build configuration.
68
68
include ( unit-test/unity_build.cmake )
You can’t perform that action at this time.
0 commit comments