summaryrefslogtreecommitdiff
path: root/cpp/src/tests/Shlib.cpp
diff options
context:
space:
mode:
authorStephen D. Huston <shuston@apache.org>2010-06-29 18:24:23 +0000
committerStephen D. Huston <shuston@apache.org>2010-06-29 18:24:23 +0000
commitb4b9babccb7acc3ba3a90c9e94fc47b2adc658b1 (patch)
tree54e3df03f4be30909295b2d4e45e4670f63f7e25 /cpp/src/tests/Shlib.cpp
parent2a51266a1d7b68a1a7c326d537f02dc60c7fbc2c (diff)
downloadqpid-python-b4b9babccb7acc3ba3a90c9e94fc47b2adc658b1.tar.gz
Move all shared lib prefix/postfix/suffix settings from tests/CMakeLists.txt to config.h (revises the plan implemented at r770001). Also sets separate macros for MODULE and SHLIB. Fixes QPID-2707.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@959067 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/tests/Shlib.cpp')
-rw-r--r--cpp/src/tests/Shlib.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/cpp/src/tests/Shlib.cpp b/cpp/src/tests/Shlib.cpp
index 25974d0ebb..d8ad4c14d8 100644
--- a/cpp/src/tests/Shlib.cpp
+++ b/cpp/src/tests/Shlib.cpp
@@ -35,10 +35,10 @@ typedef void (*CallMe)(int*);
QPID_AUTO_TEST_CASE(testShlib) {
- // The CMake-based build passes in the module suffix; if it's not there,
- // this is a Linux/UNIX libtool-based build.
-#if defined (QPID_MODULE_PREFIX) && defined (QPID_MODULE_SUFFIX)
- Shlib sh("./" QPID_MODULE_PREFIX "shlibtest" QPID_MODULE_POSTFIX QPID_MODULE_SUFFIX);
+ // The CMake-based build passes in the shared lib suffix; if it's not
+ // there, this is a Linux/UNIX libtool-based build.
+#if defined (QPID_SHLIB_PREFIX) && defined (QPID_SHLIB_SUFFIX)
+ Shlib sh("./" QPID_SHLIB_PREFIX "shlibtest" QPID_SHLIB_POSTFIX QPID_SHLIB_SUFFIX);
#else
Shlib sh(".libs/libshlibtest.so");
#endif
@@ -59,8 +59,8 @@ QPID_AUTO_TEST_CASE(testShlib) {
QPID_AUTO_TEST_CASE(testAutoShlib) {
int unloaded = 0;
{
-#if defined (QPID_MODULE_PREFIX) && defined (QPID_MODULE_SUFFIX)
- AutoShlib sh("./" QPID_MODULE_PREFIX "shlibtest" QPID_MODULE_POSTFIX QPID_MODULE_SUFFIX);
+#if defined (QPID_SHLIB_PREFIX) && defined (QPID_SHLIB_SUFFIX)
+ AutoShlib sh("./" QPID_SHLIB_PREFIX "shlibtest" QPID_SHLIB_POSTFIX QPID_SHLIB_SUFFIX);
#else
AutoShlib sh(".libs/libshlibtest.so");
#endif