From 729034dd947fd5c4337f80f2030a5aaee54eabd3 Mon Sep 17 00:00:00 2001 From: Atlante45 Date: Tue, 30 Dec 2014 11:13:00 -0800 Subject: [PATCH] Removed unnecessary list(LENGTH ...) --- cmake/macros/IncludeDependencyIncludes.cmake | 7 ++----- cmake/macros/LinkHifiLibraries.cmake | 5 +---- 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/cmake/macros/IncludeDependencyIncludes.cmake b/cmake/macros/IncludeDependencyIncludes.cmake index cc2e5ca121..4474bdc53a 100644 --- a/cmake/macros/IncludeDependencyIncludes.cmake +++ b/cmake/macros/IncludeDependencyIncludes.cmake @@ -16,10 +16,7 @@ macro(INCLUDE_DEPENDENCY_INCLUDES) # include those in our own target include_directories(SYSTEM ${${TARGET_NAME}_DEPENDENCY_INCLUDES}) - list(LENGTH ${TARGET_NAME}_DEPENDENCY_INCLUDES NUM_DEPENDENCY_INCLUDES) - if(NUM_DEPENDENCY_INCLUDES STRGREATER 0) - # set the property on this target so it can be retreived by targets linking to us - set_target_properties(${TARGET_NAME} PROPERTIES DEPENDENCY_INCLUDES "${${TARGET_NAME}_DEPENDENCY_INCLUDES}") - endif () + # set the property on this target so it can be retreived by targets linking to us + set_target_properties(${TARGET_NAME} PROPERTIES DEPENDENCY_INCLUDES "${${TARGET_NAME}_DEPENDENCY_INCLUDES}") endif() endmacro(INCLUDE_DEPENDENCY_INCLUDES) \ No newline at end of file diff --git a/cmake/macros/LinkHifiLibraries.cmake b/cmake/macros/LinkHifiLibraries.cmake index 7d3aff0e78..ef0c8321c6 100644 --- a/cmake/macros/LinkHifiLibraries.cmake +++ b/cmake/macros/LinkHifiLibraries.cmake @@ -29,10 +29,7 @@ macro(LINK_HIFI_LIBRARIES) get_target_property(LINKED_TARGET_DEPENDENCY_INCLUDES ${HIFI_LIBRARY} DEPENDENCY_INCLUDES) if(LINKED_TARGET_DEPENDENCY_INCLUDES) - list(LENGTH LINKED_TARGET_DEPENDENCY_INCLUDES NUM_DEPENDENCY_INCLUDES) - if(NUM_DEPENDENCY_INCLUDES STRGREATER 0) - list(APPEND ${TARGET_NAME}_DEPENDENCY_INCLUDES ${LINKED_TARGET_DEPENDENCY_INCLUDES}) - endif() + list(APPEND ${TARGET_NAME}_DEPENDENCY_INCLUDES ${LINKED_TARGET_DEPENDENCY_INCLUDES}) endif() endforeach()