Skip to content

Commit

Permalink
fix(cmake): include sanitizers only if -DENABLE_SANITIZER=ON
Browse files Browse the repository at this point in the history
Signed-off-by: Dusan Malusev <[email protected]>
  • Loading branch information
CodeLieutenant committed Jan 26, 2025
1 parent 3db336a commit 8a92248
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,11 @@ option(USE_LIBCASSANDRA "Use DataStax LibCassandra instead of LibScyllaDB" OFF)

find_package(PHPConfig REQUIRED)
find_package(PHP REQUIRED)
find_package(Sanitizers REQUIRED)

if (ENABLE_SANITIZERS)
find_package(Sanitizers REQUIRED)
endif()

find_package(Libuv REQUIRED)
find_package(LibGMP REQUIRED)
find_package(CPPDriver REQUIRED)
Expand Down

0 comments on commit 8a92248

Please sign in to comment.