From 262b0f7619a8d0a48f6cfefebfcc986ea04e4af2 Mon Sep 17 00:00:00 2001 From: Roland Kaufmann Date: Thu, 8 Aug 2013 00:02:26 +0200 Subject: [PATCH] Only configure libtool for libraries that exist --- cmake/Modules/OpmLibMain.cmake | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cmake/Modules/OpmLibMain.cmake b/cmake/Modules/OpmLibMain.cmake index 5dcf193d..f902bc16 100644 --- a/cmake/Modules/OpmLibMain.cmake +++ b/cmake/Modules/OpmLibMain.cmake @@ -225,7 +225,9 @@ opm_doc (${project} ${doxy_dir}) # provide compatibility with using this build in dunecontrol include (DuneCompat) include (LibtoolArchives) -configure_la (${project} ${${project}_TARGET} ${project}_LIBTOOL_ARCHIVE) +if (${project}_TARGET) + configure_la (${project} ${${project}_TARGET} ${project}_LIBTOOL_ARCHIVE) +endif () ### clean in-source builds ### include (OpmDistClean)