Skip to content
Permalink
Browse files

handle spaces in install_names

  • Loading branch information
kyngchaos committed Apr 1, 2013
1 parent 00c5edf commit e31d4a2058385677a318815f3b7eb8d531c76a9e
Showing with 2 additions and 1 deletion.
  1. +2 −1 cmake/MacBundleMacros.cmake
@@ -37,7 +37,8 @@ FUNCTION (GET_INSTALL_NAME LIBFILE LIBNAME OUTVAR)
STRING (REGEX REPLACE ".*:\n" "" iname "${iname_out}")
IF (iname)
# find libname
STRING (REGEX MATCH "[^\n\t ]*${LIBNAME}[^\n ]*" iname "${iname}")
STRING (REGEX MATCH "[^\n\t ]*${LIBNAME}[^\n]*" iname "${iname}")
STRING (REGEX REPLACE " \(compatibility version .*, current version .*\)$" "" iname "${iname}")
ENDIF (iname)
SET (${OUTVAR} ${iname} PARENT_SCOPE)
ELSE ()

0 comments on commit e31d4a2

Please sign in to comment.
You can’t perform that action at this time.