[asterisk-scf-commits] asterisk-scf/release/ice-util-cpp.git branch "master" updated.

Commits to the Asterisk SCF project code repositories asterisk-scf-commits at lists.digium.com
Wed Oct 5 09:05:12 CDT 2011


branch "master" has been updated
       via  ed89284be4fdd448088f70299a5b1f518d734c73 (commit)
      from  0eb08367686faa45b4f1d6604dfb589686990c03 (commit)

Summary of changes:
 src/CMakeLists.txt |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)


- Log -----------------------------------------------------------------
commit ed89284be4fdd448088f70299a5b1f518d734c73
Author: Joshua Colp <jcolp at digium.com>
Date:   Wed Oct 5 11:04:56 2011 -0300

    Build astscf-ice-util-cpp-pjlib statically so the thread hook performs on Windows as it does on Linux.

diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 30d5c21..15ed730 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -18,7 +18,12 @@ astscf_component_install(astscf-ice-util-cpp)
 astscf_component_init(astscf-ice-util-cpp-pjlib)
 add_subdirectory(PJLib)
 astscf_component_add_boost_libraries(astscf-ice-util-cpp core)
-astscf_component_build_library(astscf-ice-util-cpp-pjlib)
+astscf_component_build_library(astscf-ice-util-cpp-pjlib STATIC)
+if(CMAKE_COMPILER_IS_GNUCXX)
+  if(CMAKE_SIZEOF_VOID_P MATCHES 8)
+    set_target_properties(astscf-ice-util-cpp-pjlib PROPERTIES COMPILE_FLAGS -fPIC)
+  endif()
+endif()
 target_link_libraries(astscf-ice-util-cpp logging-client)
 astscf_component_install(astscf-ice-util-cpp-pjlib)
 pjproject_link(astscf-ice-util-cpp-pjlib pjlib)

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


-- 
asterisk-scf/release/ice-util-cpp.git



More information about the asterisk-scf-commits mailing list