Skip to content

Commit

Permalink
Actually perform OpenMP tests, minor option fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
LTLA committed Jul 31, 2024
1 parent 608a688 commit 7bcd985
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ FetchContent_MakeAvailable(scran_tests)

enable_testing()

set(CODE_COVERAGE OFF CACHE BOOL "Enable coverage testing")
option(CODE_COVERAGE "Enable coverage testing" OFF)
set(DO_CODE_COVERAGE OFF)
if(CODE_COVERAGE AND CMAKE_CXX_COMPILER_ID MATCHES "GNU|Clang")
set(DO_CODE_COVERAGE ON)
Expand Down Expand Up @@ -42,7 +42,7 @@ endmacro()
create_test(libtest)

find_package(OpenMP)
if (USE_OPENMP)
if (OpenMP_FOUND)
create_test(omptest)
target_link_libraries(omptest OpenMP::OpenMP_CXX)
endif()

0 comments on commit 7bcd985

Please sign in to comment.