ENDIF()
ENDIF()
-
#
# Get library name directly from the target:
#
#
# Transform some cmake lists into a string that the old Makefile
# mechanism actually understands:
-
+ #
TO_STRING_AND_ADD_PREFIX(MAKEFILE_INCLUDE_DIRS "${CMAKE_INCLUDE_FLAG_CXX}"
$(D)/${DEAL_II_INCLUDE_RELDIR}
$(D)/${DEAL_II_INCLUDE_RELDIR}/deal.II
${DEAL_II_USER_DEFINITIONS_${build}}
)
- TO_STRING(MAKEFILE_TARGETS_${build}
- $(D)/${DEAL_II_LIBRARY_RELDIR}/${CONFIG_LIBRARY_${build}}
+ #
+ # Ideally, DEAL_II_EXTERNAL_LIBRARIES should just contain a list of
+ # full library paths. Nevertheless, filter out all elements that are
+ # not a full path starting with "/".
+ #
+ SET(_libs)
+ FOREACH(_lib
${DEAL_II_EXTERNAL_LIBRARIES}
${DEAL_II_EXTERNAL_LIBRARIES_${build}}
)
+ IF(_lib MATCHES "^/")
+ LIST(APPEND _libs "${_lib}")
+ ENDIF()
+ ENDFOREACH()
+
+ TO_STRING(MAKEFILE_TARGETS_${build}
+ $(D)/${DEAL_II_LIBRARY_RELDIR}/${CONFIG_LIBRARY_${build}}
+ ${_libs}
+ )
#
# TODO: Come up with an idea how to get the link line directly from