check.patch 540 B

1234567891011121314
  1. diff --git a/CMakeLists.txt b/CMakeLists.txt
  2. index d9dbd66..87c92e6 100644
  3. --- a/CMakeLists.txt
  4. +++ b/CMakeLists.txt
  5. @@ -379,8 +379,7 @@ if (BUILD_MYSQL)
  6. if (DROGON_FOUND_MYSQL)
  7. message(STATUS "Ok! We find mariadb!")
  8. - include(CheckLibraryExists)
  9. - check_library_exists(${MYSQL_LIB_NAME} mysql_optionsv "" HAS_MYSQL_OPTIONSV)
  10. + set(HAS_MYSQL_OPTIONSV TRUE)
  11. if (HAS_MYSQL_OPTIONSV)
  12. message(STATUS "Mariadb support mysql_optionsv")
  13. add_definitions(-DHAS_MYSQL_OPTIONSV)