From: Tor Didriksen Date: November 21 2012 2:51pm Subject: Re: bzr push into mysql-trunk branch (tor.didriksen:4857 to 4858) List-Archive: http://lists.mysql.com/commits/145355 Message-Id: <50ACEA88.4090104@oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit On 2012-11-17 10:35, Vladislav Vaintroub wrote: >> Hello Wlad >> > >> > We patched YaSSL for a memory leak (a day or two earlier I think). >> > That patch needed pthread_once(), and we got linking problems on some >> > platforms (freebsd and/or osx) > Ok, but what is different in INCLUDE compared to FIND_PACKAGE? Both should > define CMAKE_THREAD_LIBS_INIT , or not? > >> > -- didrik >> > hello again. you are right, of course :-) I didn't realize that INCLUDE(Findxxx) is the same as FIND_PACKAGE(xxx) Grepping through the cmake code, we also have: cmake/zlib.cmake: INCLUDE(FindZLIB) -- didrik