Skip to content

Commit 9b9bbf1

Browse files
deepin-ci-robot18202781743
authored andcommitted
sync: from linuxdeepin/qt5integration
Synchronize source files from linuxdeepin/qt5integration. Source-pull-request: linuxdeepin/qt5integration#259
1 parent 3cc090f commit 9b9bbf1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ project(
1717
LANGUAGES CXX C
1818
)
1919

20-
option(BUILD_TESTS "Build tests" ON)
2120
option(ENABLE_COV "Enable code coverage" OFF)
2221

2322
if(PROJECT_VERSION_MAJOR EQUAL 6)
@@ -49,6 +48,7 @@ string(TOLOWER ${CMAKE_BUILD_TYPE} CMAKE_BUILD_TYPE_LOWER)
4948
if(CMAKE_BUILD_TYPE_LOWER STREQUAL release)
5049
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O2")
5150
elseif(CMAKE_BUILD_TYPE_LOWER STREQUAL debug)
51+
set(BUILD_TESTING ON)
5252
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O0 -g")
5353
endif()
5454

@@ -131,6 +131,6 @@ add_subdirectory(styleplugins)
131131
if(CMAKE_BUILD_TYPE_LOWER STREQUAL debug)
132132
add_subdirectory(styles)
133133
endif()
134-
if(BUILD_TESTS AND NOT ${CMAKE_SYSTEM_PROCESSOR} MATCHES "loongarch")
134+
if(BUILD_TESTING)
135135
add_subdirectory(tests)
136136
endif()

0 commit comments

Comments
 (0)