Skip to content

Commit a3b60a3

Browse files
committed
No need for coverage
1 parent cfffe29 commit a3b60a3

File tree

1 file changed

+1
-13
lines changed

1 file changed

+1
-13
lines changed

CMakeLists.txt

+1-13
Original file line numberDiff line numberDiff line change
@@ -293,14 +293,9 @@ else()
293293
endif()
294294

295295
option(ENABLE_TESTING "Enable testing" OFF)
296-
option(COVERAGE "Build with coverage check" OFF)
297-
298-
if (COVERAGE AND BUILD_SHARED_LIBS)
299-
MESSAGE(FATAL_ERROR "Coverage can only be computed on static compilation")
300-
endif()
301296

302297
if (NOT WIN32)
303-
if(NOT ENABLE_TESTING AND ${CMAKE_SYSTEM_NAME} MATCHES "Linux" AND NOT COVERAGE)
298+
if(NOT ENABLE_TESTING AND ${CMAKE_SYSTEM_NAME} MATCHES "Linux")
304299
add_cxx_flag_if_supported("-fvisibility=hidden")
305300
endif()
306301
add_compile_options("-fPIC")
@@ -344,14 +339,7 @@ if (NOT WIN32)
344339
endif()
345340
endif()
346341

347-
if (COVERAGE)
348-
add_compile_options("--coverage")
349-
SET(CMAKE_EXE_LINKER_FLAGS "--coverage")
350-
endif()
351-
352-
353342
option(IPASIR "Also build IPASIR" OFF)
354-
355343
option(LIMITMEM "*Only used for testing*. Limit memory used by CMS through number of variables" OFF)
356344
if (LIMITMEM)
357345
add_definitions(-DLIMITMEM)

0 commit comments

Comments
 (0)