Skip to content

Commit

Permalink
Update stocc's CMakeLists.txt
Browse files Browse the repository at this point in the history
- Always build as static library
- Build using -std=c++23
  • Loading branch information
robomics committed Nov 13, 2024
1 parent b446792 commit 3ad0284
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
Binary file modified external/stocc-20240322.tar.xz
Binary file not shown.
6 changes: 1 addition & 5 deletions src/hypothesis_testing/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ FetchContent_Declare(
stocc
URL
"${CMAKE_CURRENT_SOURCE_DIR}/../../external/stocc-20240322.tar.xz"
URL_HASH SHA256=91e414f44445dcdfa569148c2484a50cadd786e30d833836d98f6111f82e9850
URL_HASH SHA256=04d1155b5e3dd5fa9646569d605c74ed08661ea3909aa781886befcd6567581e
UPDATE_DISCONNECTED 1
EXCLUDE_FROM_ALL
SYSTEM
Expand All @@ -31,11 +31,7 @@ find_package(hictk REQUIRED)
find_package(phmap REQUIRED)
find_package(spdlog REQUIRED)

set(NCHG_BUILD_SHARED_LIBS "${BUILD_SHARED_LIBS}")
set(BUILD_SHARED_LIBS OFF)
FetchContent_MakeAvailable(stocc)
set(BUILD_SHARED_LIBS "${NCHG_BUILD_SHARED_LIBS}")
unset(NCHG_BUILD_SHARED_LIBS)

add_library(nchg_hypothesis_testing STATIC)
add_library(nchg::hypothesis_testing ALIAS nchg_hypothesis_testing)
Expand Down

0 comments on commit 3ad0284

Please sign in to comment.