From bb61adf0d64de2b5c604e0657a583726497c05a2 Mon Sep 17 00:00:00 2001 From: liaogang Date: Tue, 20 Jun 2017 21:57:16 +0800 Subject: [PATCH] ENH: Typesetting CMake --- cmake/generic.cmake | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/cmake/generic.cmake b/cmake/generic.cmake index eb0326961e2..f92cbdc65ef 100644 --- a/cmake/generic.cmake +++ b/cmake/generic.cmake @@ -92,16 +92,16 @@ if(NOT APPLE) endif(NOT APPLE) function(merge_static_libs TARGET_NAME) - set(libs ${ARGN}) - list(REMOVE_DUPLICATES libs) + set(libs ${ARGN}) + list(REMOVE_DUPLICATES libs) - # First get the file names of the libraries to be merged - foreach(lib ${libs}) - get_target_property(libtype ${lib} TYPE) - if(NOT libtype STREQUAL "STATIC_LIBRARY") - message(FATAL_ERROR "merge_static_libs can only process static libraries") - endif() - set(libfiles ${libfiles} $) + # First get the file names of the libraries to be merged + foreach(lib ${libs}) + get_target_property(libtype ${lib} TYPE) + if(NOT libtype STREQUAL "STATIC_LIBRARY") + message(FATAL_ERROR "merge_static_libs can only process static libraries") + endif() + set(libfiles ${libfiles} $) endforeach() if(APPLE) # Use OSX's libtool to merge archives -- GitLab