You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@zookeeper.apache.org by ha...@apache.org on 2018/04/16 04:22:29 UTC

zookeeper git commit: ZOOKEEPER-3017: Link libm in CMake on FreeBSD.

Repository: zookeeper
Updated Branches:
  refs/heads/master fbd21329d -> 673785122


ZOOKEEPER-3017: Link libm in CMake on FreeBSD.

andschwa

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

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

Reviewers: Andrew Schwartzmeyer <an...@schwartzmeyer.com>, Andor Molnár <an...@cloudera.com>, Michael Han <ha...@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/67378512
Tree: http://git-wip-us.apache.org/repos/asf/zookeeper/tree/67378512
Diff: http://git-wip-us.apache.org/repos/asf/zookeeper/diff/67378512

Branch: refs/heads/master
Commit: 67378512285c4b8dc9be50b90bbd2967068fc24e
Parents: fbd2132
Author: David Forsythe <df...@freebsd.org>
Authored: Sun Apr 15 21:22:25 2018 -0700
Committer: Michael Han <ha...@apache.org>
Committed: Sun Apr 15 21:22:25 2018 -0700

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


http://git-wip-us.apache.org/repos/asf/zookeeper/blob/67378512/src/c/CMakeLists.txt
----------------------------------------------------------------------
diff --git a/src/c/CMakeLists.txt b/src/c/CMakeLists.txt
index cb642a2..f9b7b90 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