You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@geode.apache.org by jb...@apache.org on 2018/11/15 07:22:46 UTC
[geode-native] branch develop updated: GEODE-5025: Fixes test
library visibility.
This is an automated email from the ASF dual-hosted git repository.
jbarrett pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/geode-native.git
The following commit(s) were added to refs/heads/develop by this push:
new 3743c21 GEODE-5025: Fixes test library visibility.
3743c21 is described below
commit 3743c210bc0a427fa69d73f2442fde5b1d560554
Author: Jacob Barrett <jb...@pivotal.io>
AuthorDate: Wed Nov 14 23:22:11 2018 -0800
GEODE-5025: Fixes test library visibility.
---
cppcache/integration-test/CMakeLists.txt | 5 ++---
tests/cpp/fwklib/CMakeLists.txt | 5 +++++
2 files changed, 7 insertions(+), 3 deletions(-)
diff --git a/cppcache/integration-test/CMakeLists.txt b/cppcache/integration-test/CMakeLists.txt
index fc52ad6..8f975c5 100644
--- a/cppcache/integration-test/CMakeLists.txt
+++ b/cppcache/integration-test/CMakeLists.txt
@@ -22,7 +22,6 @@ add_library(test-cppcache-utils STATIC
CacheHelper.cpp
CacheableWrapper.cpp
)
-
target_link_libraries(test-cppcache-utils
PRIVATE
ACE
@@ -31,11 +30,11 @@ target_link_libraries(test-cppcache-utils
apache-geode
framework
)
-
set_target_properties(test-cppcache-utils PROPERTIES
+ CXX_VISIBILITY_PRESET hidden
+ VISIBILITY_INLINES_HIDDEN ON
FOLDER cpp/test/integration
)
-
target_compile_definitions(test-cppcache-utils
PRIVATE
$<MAKE_C_IDENTIFIER:test-cppcache-utils>_static=1
diff --git a/tests/cpp/fwklib/CMakeLists.txt b/tests/cpp/fwklib/CMakeLists.txt
index f57c01e..68cddd3 100644
--- a/tests/cpp/fwklib/CMakeLists.txt
+++ b/tests/cpp/fwklib/CMakeLists.txt
@@ -42,6 +42,11 @@ add_library(framework STATIC
UDPIpc.hpp
)
+set_target_properties(framework PROPERTIES
+ CXX_VISIBILITY_PRESET hidden
+ VISIBILITY_INLINES_HIDDEN ON
+)
+
target_compile_options(framework
PRIVATE
# Add PIC flags to link later with shared library