From: Wolfgang Bangerth Date: Fri, 19 Apr 2013 18:47:16 +0000 (+0000) Subject: Revert 29343 again, for the same reason as before. X-Git-Tag: v8.0.0~652 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8133a9210e21588cf50aa574d8277ca65a305c4e;p=dealii.git Revert 29343 again, for the same reason as before. git-svn-id: https://svn.dealii.org/trunk@29344 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/cmake/config/CMakeLists.txt b/deal.II/cmake/config/CMakeLists.txt index 8522bbf9ba..02780e6ed2 100644 --- a/deal.II/cmake/config/CMakeLists.txt +++ b/deal.II/cmake/config/CMakeLists.txt @@ -173,7 +173,7 @@ IF(DEAL_II_COMPONENT_COMPAT_FILES) ${DEAL_II_EXTERNAL_LIBRARIES} ${DEAL_II_EXTERNAL_LIBRARIES_${build}} ) - IF(_lib MATCHES "^\\s*/") + IF(_lib MATCHES "^/") LIST(APPEND _libs "${_lib}") ENDIF() ENDFOREACH() @@ -189,30 +189,13 @@ IF(DEAL_II_COMPONENT_COMPAT_FILES) ${DEAL_II_EXTERNAL_LIBRARIES} ${DEAL_II_EXTERNAL_LIBRARIES_${build}} ) - + LIST(APPEND MAKEFILE_LIBS_${build} ${_lib}) # - # Strip leading and trailing whitespace + # Extract library paths where possible: # - STRING(STRIP "${_lib}" _lib) - IF(_lib MATCHES "^(/|\\$\\(D\\))") - # Full path: /path/to/libfoo.so: - - # Extract library paths: GET_FILENAME_COMPONENT(_path ${_lib} PATH) LIST(APPEND _paths ${_path}) - - LIST(APPEND MAKEFILE_LIBS_${build} ${_lib}) - - ELSEIF(_lib MATCHES "^-l") - # Library is of the form "-lfoo": - LIST(APPEND MAKEFILE_LIBS_${build} ${_lib}) - - ELSEIF(NOT "${_lib}" STREQUAL "") - # Well in this case we just assume that we have to append an "-l" - # I'm sorry, but this won't get libfoo.so right, ... - LIST(APPEND MAKEFILE_LIBS_${build} "-l${_lib}") - ENDIF() ENDFOREACH()