mirror of
https://github.com/MariaDB/server.git
synced 2025-02-02 12:01:42 +01:00
bd63072bdf
for 5485: - remove icc handling stuff from cmake - clean up remaining cmake files - create libtokudb_static.a in a cleaner way using cmake OBJECT libs (requires cmake 2.8.9) - use POSITION_INDEPENDENT_CODE property instead of manually setting -fPIC for 5368: - fix compilation failures due to small differences between gcc and clang, mostly in tests - use toku_fileids_are_equal instead of memcmp to compare fileids (closes #5505) - create dummy implementation of partitioned_counter for osx (quick fix for, and closes #5506) - add mutex->valid bit under TOKU_PTHREAD_DEBUG - initialize mutex of DB_TXN created during recovery for 2PC (closes #5507) git-svn-id: file:///svn/toku/tokudb@48024 c7de825b-a66e-492c-adef-691d508d4ae1
37 lines
1.2 KiB
CMake
37 lines
1.2 KiB
CMake
include_directories(${CMAKE_CURRENT_SOURCE_DIR})
|
|
|
|
set(tokuportability_srcs
|
|
file
|
|
memory
|
|
os_malloc
|
|
portability
|
|
toku_assert
|
|
toku_pthread
|
|
toku_fair_rwlock
|
|
)
|
|
|
|
add_library(${LIBTOKUPORTABILITY} SHARED ${tokuportability_srcs})
|
|
add_library(${LIBTOKUPORTABILITY}_static STATIC ${tokuportability_srcs})
|
|
maybe_add_gcov_to_libraries(${LIBTOKUPORTABILITY} ${LIBTOKUPORTABILITY}_static)
|
|
set_property(TARGET ${LIBTOKUPORTABILITY} ${LIBTOKUPORTABILITY}_static APPEND PROPERTY COMPILE_DEFINITIONS _GNU_SOURCE)
|
|
set_target_properties(${LIBTOKUPORTABILITY}_static PROPERTIES POSITION_INDEPENDENT_CODE ON)
|
|
target_link_libraries(${LIBTOKUPORTABILITY} LINK_PUBLIC ${CMAKE_THREAD_LIBS_INIT} dl)
|
|
|
|
if (CMAKE_CXX_COMPILER_ID STREQUAL Intel)
|
|
## ignore warning about cilkrts linking dynamically
|
|
add_space_separated_property(TARGET ${LIBTOKUPORTABILITY} LINK_FLAGS "-diag-disable 10237")
|
|
endif ()
|
|
|
|
set_property(SOURCE file memory os_malloc portability toku_assert toku_rwlock APPEND PROPERTY
|
|
COMPILE_DEFINITIONS TOKU_ALLOW_DEPRECATED=1)
|
|
|
|
install(
|
|
FILES toku_os_types.h toku_time.h
|
|
DESTINATION include
|
|
)
|
|
install(
|
|
TARGETS ${LIBTOKUPORTABILITY} ${LIBTOKUPORTABILITY}_static
|
|
DESTINATION lib
|
|
)
|
|
|
|
add_subdirectory(tests)
|