Skip to content

Commit e31d4a2

Browse files
committed
handle spaces in install_names
1 parent 00c5edf commit e31d4a2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cmake/MacBundleMacros.cmake

+2-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@ FUNCTION (GET_INSTALL_NAME LIBFILE LIBNAME OUTVAR)
3737
STRING (REGEX REPLACE ".*:\n" "" iname "${iname_out}")
3838
IF (iname)
3939
# find libname
40-
STRING (REGEX MATCH "[^\n\t ]*${LIBNAME}[^\n ]*" iname "${iname}")
40+
STRING (REGEX MATCH "[^\n\t ]*${LIBNAME}[^\n]*" iname "${iname}")
41+
STRING (REGEX REPLACE " \(compatibility version .*, current version .*\)$" "" iname "${iname}")
4142
ENDIF (iname)
4243
SET (${OUTVAR} ${iname} PARENT_SCOPE)
4344
ELSE ()

0 commit comments

Comments
 (0)