Skip to content

Commit

Permalink
handle spaces in install_names
Browse files Browse the repository at this point in the history
  • Loading branch information
kyngchaos committed Apr 1, 2013
1 parent 00c5edf commit e31d4a2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmake/MacBundleMacros.cmake
Expand Up @@ -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 ()
Expand Down

0 comments on commit e31d4a2

Please sign in to comment.