Only configure libtool for libraries that exist

This commit is contained in:
Roland Kaufmann committed 2013-08-08 10:09:08 +02:00
1 parent 6149756f3c
commit 262b0f7619
1 file changed
+3 -1
+3 -1
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)