aboutsummaryrefslogtreecommitdiff
path: root/am2cmake
diff options
context:
space:
mode:
authorAlexander Neundorf <neundorf@kde.org>2006-01-14 20:15:30 +0000
committerAlexander Neundorf <neundorf@kde.org>2006-01-14 20:15:30 +0000
commitf2586846661fd2ef1a999765108298ca41b57256 (patch)
tree54fb8544e8e44ef95611133af243b3d397714364 /am2cmake
parentdf94ff6bfb0fc72d39ef37dba00db3f67c75ad22 (diff)
downloadextra-cmake-modules-f2586846661fd2ef1a999765108298ca41b57256.tar.gz
extra-cmake-modules-f2586846661fd2ef1a999765108298ca41b57256.tar.bz2
-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
Diffstat (limited to 'am2cmake')
-rwxr-xr-xam2cmake12
1 files changed, 7 insertions, 5 deletions
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