Only configure libtool for libraries that exist

This commit is contained in:
Roland Kaufmann
2013-08-08 00:02:26 +02:00
parent 8d3b0fed71
commit 3d366d9cdf

View File

@@ -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)