[asterisk-scf-commits] asterisk-scf/release/cmake.git branch "master" updated.
Commits to the Asterisk SCF project code repositories
asterisk-scf-commits at lists.digium.com
Fri Sep 17 17:24:31 CDT 2010
branch "master" has been updated
via 9615ced9f07f8c01ca1c8b3f2b29aa5d05a185da (commit)
from 0af2100f9e0fbe0a2493ec0a772523c8df1b39d7 (commit)
Summary of changes:
AsteriskSCF.cmake | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
- Log -----------------------------------------------------------------
commit 9615ced9f07f8c01ca1c8b3f2b29aa5d05a185da
Author: Ken Hunt <ken.hunt at digium.com>
Date: Fri Sep 17 17:11:57 2010 -0500
Check for empty list before list(REMOVE_DUPLICATES...) when building
library.
diff --git a/AsteriskSCF.cmake b/AsteriskSCF.cmake
index 6bb07ac..d796bc4 100644
--- a/AsteriskSCF.cmake
+++ b/AsteriskSCF.cmake
@@ -789,7 +789,12 @@ function(hydra_component_build_library COMPONENT)
set(lang ${HYDRA_${COMPONENT}_LANG})
message(STATUS "Building component ${COMPONENT} (${lang}) as standalone executable")
list(APPEND icelibs ${HYDRA_ICE_LIBRARIES_${lang}} ${${COMPONENT}_ICE_LIBRARIES})
- list(REMOVE_DUPLICATES icelibs)
+
+ list(LENGTH icelibs numicelibs)
+ if(numicelibs GREATER 0)
+ list(REMOVE_DUPLICATES icelibs)
+ endif()
+
foreach(lib ${icelibs})
list(APPEND target_libs "${ICE_${lang}_LIB_${lib}}")
endforeach()
-----------------------------------------------------------------------
--
asterisk-scf/release/cmake.git
More information about the asterisk-scf-commits
mailing list