File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,6 @@ project(
17
17
LANGUAGES CXX C
18
18
)
19
19
20
- option (BUILD_TESTS "Build tests" ON )
21
20
option (ENABLE_COV "Enable code coverage" OFF )
22
21
23
22
if (PROJECT_VERSION_MAJOR EQUAL 6 )
@@ -49,6 +48,7 @@ string(TOLOWER ${CMAKE_BUILD_TYPE} CMAKE_BUILD_TYPE_LOWER)
49
48
if (CMAKE_BUILD_TYPE_LOWER STREQUAL release )
50
49
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O2" )
51
50
elseif (CMAKE_BUILD_TYPE_LOWER STREQUAL debug )
51
+ set (BUILD_TESTING ON )
52
52
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O0 -g" )
53
53
endif ()
54
54
@@ -131,6 +131,6 @@ add_subdirectory(styleplugins)
131
131
if (CMAKE_BUILD_TYPE_LOWER STREQUAL debug )
132
132
add_subdirectory (styles )
133
133
endif ()
134
- if (BUILD_TESTS AND NOT ${CMAKE_SYSTEM_PROCESSOR} MATCHES "loongarch" )
134
+ if (BUILD_TESTING )
135
135
add_subdirectory (tests )
136
136
endif ()
You can’t perform that action at this time.
0 commit comments