Libraries must be specified in the specific order,
REMOVE_DUPLICATES cannot be used, because it destroys this order.
(when OSLIBS contains "-lpthread -ljemalloc -lpthread", REMOVE_DUPLICATES
makes it "-lpthread -ljemalloc". But a thread library *must* be *after* jemalloc)
I'll just put everything in one bug report :)
1. storage/ tokudb/ PerconaFT/ cmake_modules/ FindValgrind. cmake
I've changed
- find_package_ handle_ standard_ args(VALGRIND DEFAULT_MSG handle_ standard_ args(Valgrind DEFAULT_MSG
+ find_package_
with the comment "correct the package name in FindValgrind.cmake (for find_package(... REQUIRED) to work)"
2. storage/ tokudb/ PerconaFT/ cmake_modules/ TokuMergeLibs. cmake
I've commented out
- LIST(REMOVE_ DUPLICATES OSLIBS) DUPLICATES OSLIBS)
- #LIST(REMOVE_
with the comment
Libraries must be specified in the specific order,
REMOVE_DUPLICATES cannot be used, because it destroys this order.
(when OSLIBS contains "-lpthread -ljemalloc -lpthread", REMOVE_DUPLICATES
makes it "-lpthread -ljemalloc". But a thread library *must* be *after* jemalloc)
3. storage/ tokudb/ PerconaFT/ cmake_modules/ TokuSetupCTest. cmake
execute_ process( VARIABLE res VARIABLE full_filename STRIP_TRAILING_ WHITESPACE)
COMMAND which ${filename}
RESULT_
+ ERROR_QUIET
OUTPUT_
OUTPUT_
with the comment "'which' might print errors to stderr, they are not important, shut them up"
execute_process( STRIP_TRAILING_ WHITESPACE)
COMMAND hostname
OUTPUT_VARIABLE fullhostname
OUTPUT_
- string(REGEX REPLACE "\\.tokutek\\.com$" "" ${out} ${fullhostname})
+ string(REGEX REPLACE "\\.tokutek\\.com$" "" ${out} "${fullhostname}")
"MDEV-5124 cmake failure when fullhostname is not resolved
expand fullhostname inside the string, to have an empty string, not nothing,
when fullhostname is not defined"
- configure_ file(CTestCusto m.cmake . @ONLY) file(CTestCusto m.cmake. in CTestCustom.cmake @ONLY)
+ configure_
"don't configure_file into itself (with input=output)"