Skip to content

Commit

Permalink
Fix missing dependency when using as library project (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
ByteHamster authored Nov 15, 2024
1 parent dca3ba0 commit cf2216f
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ target_include_directories(
pasta_bit_vector INTERFACE ${CMAKE_CURRENT_SOURCE_DIR}/include
)
target_link_libraries(
pasta_bit_vector INTERFACE pasta_utils pasta_bit_vector_coverage_config
pasta_bit_vector INTERFACE pasta_utils pasta_bit_vector_coverage_config tlx
)

# Use FetchContent to load dependencies
Expand All @@ -82,6 +82,13 @@ FetchContent_Declare(
)
FetchContent_MakeAvailable(pasta_utils)

FetchContent_Declare(
tlx
GIT_REPOSITORY https://github.com/tlx/tlx.git
GIT_TAG origin/main
)
FetchContent_MakeAvailable(tlx)

# Optional test
if (PASTA_BIT_VECTOR_BUILD_TESTS)
enable_testing()
Expand All @@ -90,13 +97,6 @@ endif ()

# Optional benchmarks
if (PASTA_BIT_VECTOR_BUILD_BENCHMARKS)
FetchContent_Declare(
tlx
GIT_REPOSITORY https://github.com/tlx/tlx.git
GIT_TAG origin/main
)
FetchContent_MakeAvailable(tlx)

add_executable(bit_vector_benchmark benchmarks/bit_vector_benchmark.cpp)

target_link_libraries(
Expand Down

0 comments on commit cf2216f

Please sign in to comment.