Skip to content

Commit

Permalink
MDEV-24883 follow up: unset variables in CMake
Browse files Browse the repository at this point in the history
  • Loading branch information
kevgs committed Mar 17, 2021
1 parent f87a944 commit a4d3e04
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion cmake/uring.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,13 @@ MACRO(CHECK_URING)
IF(WITH_URING STREQUAL "yes")
MESSAGE(FATAL_ERROR "Requested WITH_URING=yes but liburing was not found")
ENDIF()
UNSET(LIBURING CACHE)
UNSET(HAVE_LIBURING_H CACHE)
ENDIF()
ELSEIF(NOT WITH_URING STREQUAL "no")
ELSEIF(WITH_URING STREQUAL "no")
UNSET(LIBURING CACHE)
UNSET(HAVE_LIBURING_H CACHE)
ELSE()
MESSAGE(FATAL_ERROR "Invalid value for WITH_URING. Must be 'yes', 'no', or 'auto'.")
ENDIF()
ENDIF()
Expand Down

0 comments on commit a4d3e04

Please sign in to comment.