From f2586846661fd2ef1a999765108298ca41b57256 Mon Sep 17 00:00:00 2001 From: Alexander Neundorf Date: Sat, 14 Jan 2006 20:15:30 +0000 Subject: -simple cmake modules for detecting libart, OpenSSL, FAM, jasper and PCRE -major improvement of am2cmake: add libtool .la files found in LIBADD to TARGET_LINK_LIBRARIES and fix the loop for adding the libs Alex svn path=/trunk/KDE/kdesdk/cmake/; revision=498154 --- am2cmake | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'am2cmake') diff --git a/am2cmake b/am2cmake index 80ab2bf7..61724c44 100755 --- a/am2cmake +++ b/am2cmake @@ -84,16 +84,18 @@ class BuildTarget else if currentLib =~ /^-l(\S+)$/ $1 + elsif currentLib =~ /^.+\/lib(\w+)\.la$/ + $1 else "" end end - end - if !lib.empty? - @libs.push(lib) -# printf("--- lib: #{lib}\n") + if !lib.empty? + @libs.push(lib) + end end + end @@ -363,7 +365,7 @@ class CMakeFile return end -# printf("target: #{buildTarget.name} lib: #{$2} line: #{line} d1: #{$1}\n") +# $stderr.printf("target: #{buildTarget.name} lib: #{$2} line: #{line} d1: #{$1}\n") buildTarget.addLibs($2) end return -- cgit v1.2.1