mirror of
https://github.com/MariaDB/server.git
synced 2025-01-28 17:54:16 +01:00
a0558b8c96
In commit 783625d78f
we forgot to
declare a dependency on the generated file mysqld_error.h.
36 lines
850 B
CMake
36 lines
850 B
CMake
INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR})
|
|
IF(WIN32)
|
|
SET(EXTRA_SOURCES tpool_win.cc aio_win.cc)
|
|
ENDIF()
|
|
|
|
IF(CMAKE_SYSTEM_NAME STREQUAL "Linux" AND LIBURING)
|
|
SET(EXTRA_SOURCES aio_liburing.cc)
|
|
ENDIF()
|
|
|
|
IF(CMAKE_SYSTEM_NAME STREQUAL "Linux" AND NOT LIBURING)
|
|
CHECK_INCLUDE_FILES (libaio.h HAVE_LIBAIO_H)
|
|
CHECK_LIBRARY_EXISTS(aio io_queue_init "" HAVE_LIBAIO)
|
|
IF(HAVE_LIBAIO_H AND HAVE_LIBAIO)
|
|
ADD_DEFINITIONS(-DLINUX_NATIVE_AIO=1)
|
|
LINK_LIBRARIES(aio)
|
|
SET(EXTRA_SOURCES aio_linux.cc)
|
|
ENDIF()
|
|
ENDIF()
|
|
|
|
ADD_LIBRARY(tpool STATIC
|
|
aio_simulated.cc
|
|
tpool_structs.h
|
|
CMakeLists.txt
|
|
tpool.h
|
|
tpool_generic.cc
|
|
task_group.cc
|
|
task.cc
|
|
wait_notification.cc
|
|
${EXTRA_SOURCES}
|
|
)
|
|
|
|
IF(CMAKE_SYSTEM_NAME STREQUAL "Linux" AND LIBURING)
|
|
ADD_DEPENDENCIES(tpool GenError)
|
|
ENDIF()
|
|
|
|
INCLUDE_DIRECTORIES(${PROJECT_SOURCE_DIR}/include)
|