Skip to content

Commit

Permalink
enable examples in the compilation by default (#301)
Browse files Browse the repository at this point in the history
Signed-off-by: wxy407827 <[email protected]>
  • Loading branch information
wxyucs authored Jan 7, 2025
1 parent b11ff63 commit c5c5ab9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ option (ENABLE_INTEL_MKL "Enable intel-mkl (x86 platform only)" ON)
option (ENABLE_CXX11_ABI "Use CXX11 ABI" ON)
option (ENABLE_LIBCXX "Use libc++ instead of libstdc++" OFF) # only support in clang
option (ENABLE_TOOLS "Whether compile vsag tools" ON)
option (ENABLE_EXAMPLES "Whether compile examples" OFF)
option (ENABLE_EXAMPLES "Whether compile examples" ON)
option (ENABLE_TESTS "Whether compile vsag tests" ON)
option (DISABLE_SSE_FORCE "Force disable sse and higher instructions" OFF)
option (DISABLE_AVX_FORCE "Force disable avx and higher instructions" OFF)
Expand Down
2 changes: 1 addition & 1 deletion examples/cpp/custom_memory_allocator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ main() {
// vsag::Options::Instance().logger()->SetLevel(vsag::Logger::kDEBUG);

ExampleAllocator allocator;
vsag::Resource resource(&allocator);
vsag::Resource resource(&allocator, nullptr);
vsag::Engine engine(&resource);

auto paramesters = R"(
Expand Down

0 comments on commit c5c5ab9

Please sign in to comment.