Repository: zookeeper
Updated Branches:
  refs/heads/branch-3.5 df4801328 -> cb45603ac


ZOOKEEPER-3017: Link libm in CMake on FreeBSD.

andschwa

Per your suggestion here: https://reviews.apache.org/r/66384/

Author: David Forsythe <dfors...@freebsd.org>

Reviewers: Andrew Schwartzmeyer <and...@schwartzmeyer.com>, Andor Molnár 
<an...@cloudera.com>, Michael Han <h...@apache.org>

Closes #499 from dforsyth/ZOOKEEPER-3017


Project: http://git-wip-us.apache.org/repos/asf/zookeeper/repo
Commit: http://git-wip-us.apache.org/repos/asf/zookeeper/commit/cb45603a
Tree: http://git-wip-us.apache.org/repos/asf/zookeeper/tree/cb45603a
Diff: http://git-wip-us.apache.org/repos/asf/zookeeper/diff/cb45603a

Branch: refs/heads/branch-3.5
Commit: cb45603ac2cfb91d155ca11cf09551301dc0d4c0
Parents: df48013
Author: David Forsythe <dfors...@freebsd.org>
Authored: Sun Apr 15 21:22:25 2018 -0700
Committer: Michael Han <h...@apache.org>
Committed: Sun Apr 15 21:24:36 2018 -0700

----------------------------------------------------------------------
 src/c/CMakeLists.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/zookeeper/blob/cb45603a/src/c/CMakeLists.txt
----------------------------------------------------------------------
diff --git a/src/c/CMakeLists.txt b/src/c/CMakeLists.txt
index 5884492..8d78d70 100644
--- a/src/c/CMakeLists.txt
+++ b/src/c/CMakeLists.txt
@@ -154,7 +154,7 @@ configure_file(cmake_config.h.in 
${CMAKE_SOURCE_DIR}/include/config.h)
 # hashtable library
 set(hashtable_sources src/hashtable/hashtable_itr.c src/hashtable/hashtable.c)
 add_library(hashtable STATIC ${hashtable_sources})
-target_link_libraries(hashtable PUBLIC $<$<PLATFORM_ID:Linux>:m>)
+target_link_libraries(hashtable PUBLIC 
$<$<OR:$<PLATFORM_ID:Linux>,$<PLATFORM_ID:FreeBSD>>:m>)
 
 # zookeeper library
 set(zookeeper_sources

Reply via email to