[asterisk-scf-commits] asterisk-scf/integration/logger.git branch "boostctl" created.

Commits to the Asterisk SCF project code repositories asterisk-scf-commits at lists.digium.com
Fri Dec 3 13:28:48 CST 2010


branch "boostctl" has been created
        at  49ea9e7b11cb0b2d5d435a0452bd5a26633f0a71 (commit)

- Log -----------------------------------------------------------------
commit 49ea9e7b11cb0b2d5d435a0452bd5a26633f0a71
Author: Ken Hunt <ken.hunt at digium.com>
Date:   Fri Dec 3 13:27:59 2010 -0600

    Manage boost link options in CMake.

diff --git a/client/src/CMakeLists.txt b/client/src/CMakeLists.txt
index 74675bd..ba73028 100644
--- a/client/src/CMakeLists.txt
+++ b/client/src/CMakeLists.txt
@@ -24,7 +24,7 @@ asterisk_scf_component_add_slice(logging-client LoggerIf)
 asterisk_scf_component_add_slice(logging-client ServiceLocatorIf)
 asterisk_scf_component_add_slice(logging-client ServiceLocatorEventsIf)
 
-asterisk_scf_add_boost_libraries(thread)
+asterisk_scf_component_add_boost_libraries(logging-client thread)
 asterisk_scf_add_ice_libraries(IceStorm)
 
 asterisk_scf_component_build_library(logging-client)
diff --git a/client/test/CMakeLists.txt b/client/test/CMakeLists.txt
index fc1e634..08a5e0c 100644
--- a/client/test/CMakeLists.txt
+++ b/client/test/CMakeLists.txt
@@ -17,7 +17,7 @@ asterisk_scf_component_add_file(logging-client-test LogBuf-test.cpp)
 asterisk_scf_component_add_file(logging-client-test IceConfigurator-test.cpp)
 asterisk_scf_component_add_file(logging-client-test client-test.cpp)
 
-asterisk_scf_component_add_boost_libraries(logging-client-test unit_test_framework)
+asterisk_scf_component_add_boost_libraries(logging-client-test unit_test_framework -DBOOST_TEST_DYN_LINK)
 
 asterisk_scf_component_add_slice(logging-client-test LoggerIf)
 asterisk_scf_component_add_slice(logging-client-test ServiceLocatorIf)
@@ -32,11 +32,7 @@ asterisk_scf_component_init(scf-log CXX)
 asterisk_scf_component_add_file(scf-log scf-log.cpp)
 asterisk_scf_component_add_slice(scf-log LoggerIf)
 
-# For reasons unknown, adding this library causes duplicate symbol errors
-# on Windows.  But without it, Mac and Linux fail to compile
-if(NOT WIN32)
-    asterisk_scf_component_add_boost_libraries(scf-log program_options)
-endif()
+asterisk_scf_component_add_boost_libraries(scf-log program_options -DBOOST_ALL_DYN_LINK)
 
 asterisk_scf_component_build_standalone(scf-log)
 target_link_libraries(scf-log logging-client)
diff --git a/client/test/client-test.cpp b/client/test/client-test.cpp
index 611848a..5503c6c 100644
--- a/client/test/client-test.cpp
+++ b/client/test/client-test.cpp
@@ -14,6 +14,5 @@
  * at the top of the source tree.
  */
 
-#define BOOST_TEST_DYN_LINK
 #define BOOST_TEST_MODULE Logger-client
 #include <boost/test/unit_test.hpp>
diff --git a/server/test/CMakeLists.txt b/server/test/CMakeLists.txt
index 62a4b9d..377e20f 100644
--- a/server/test/CMakeLists.txt
+++ b/server/test/CMakeLists.txt
@@ -16,7 +16,7 @@ asterisk_scf_component_add_slice(logging-service-test LoggerIf)
 asterisk_scf_component_add_file(logging-service-test LoggingServer-test.cpp)
 asterisk_scf_component_add_file(logging-service-test server-test.cpp)
 
-asterisk_scf_component_add_boost_libraries(logging-service-test unit_test_framework)
+asterisk_scf_component_add_boost_libraries(logging-service-test unit_test_framework -DBOOST_TEST_DYN_LINK)
 
 asterisk_scf_component_build_standalone(logging-service-test)
 
diff --git a/server/test/server-test.cpp b/server/test/server-test.cpp
index cc7b3bc..a1fbcec 100644
--- a/server/test/server-test.cpp
+++ b/server/test/server-test.cpp
@@ -14,6 +14,5 @@
  * at the top of the source tree.
  */
 
-#define BOOST_TEST_DYN_LINK
 #define BOOST_TEST_MODULE Logger-server
 #include <boost/test/unit_test.hpp>

-----------------------------------------------------------------------


-- 
asterisk-scf/integration/logger.git



More information about the asterisk-scf-commits mailing list