Commit 8586fccb authored by Leif Walsh's avatar Leif Walsh Committed by Yoni Fogel

[t:4814] ignore warning about linking with dynamic cilkrts

git-svn-id: file:///svn/toku/tokudb@43342 c7de825b-a66e-492c-adef-691d508d4ae1
parent d6c7305e
......@@ -15,6 +15,14 @@ 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)
## ignore warning about cilkrts linking dynamically
get_target_property(link_flags ${LIBTOKUPORTABILITY} LINK_FLAGS)
if (link_flags STREQUAL link_flags-NOTFOUND)
set(link_flags "")
endif ()
set_target_properties(${LIBTOKUPORTABILITY} PROPERTIES
LINK_FLAGS "${link_flags} -diag-disable 10237")
foreach(src file.c memory.c os_malloc.c portability.c toku_assert.c toku_rwlock.c)
set_property(SOURCE ${src} APPEND PROPERTY COMPILE_DEFINITIONS TOKU_ALLOW_DEPRECATED=1)
endforeach(src)
......@@ -28,4 +36,4 @@ install(
DESTINATION lib
)
add_subdirectory(tests)
\ No newline at end of file
add_subdirectory(tests)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment