Skip to content

Commit e160474

Browse files
committed
Merge remote-tracking branch 'google/develop'
2 parents 6828323 + 31f0e29 commit e160474

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

CMakeLists.txt

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -280,11 +280,14 @@ if (OS_WINDOWS)
280280
set (CONFIG_INSTALL_DIR CMake)
281281
else ()
282282
set (RUNTIME_INSTALL_DIR bin)
283-
# The LIB_SUFFIX variable is used by the Fedora package maintainers.
284-
# Also package maintainers of other distribution packages need to be able
285-
# to specify the name of the library directory.
286-
set (LIBRARY_INSTALL_DIR lib${LIB_SUFFIX}
287-
CACHE STRING "Directory name for installed libraries, e.g., \"lib64\""
283+
# The LIB_INSTALL_DIR and LIB_SUFFIX variables are used by the Fedora
284+
# package maintainers. Also package maintainers of other distribution
285+
# packages need to be able to specify the name of the library directory.
286+
if (NOT LIB_INSTALL_DIR)
287+
set (LIB_INSTALL_DIR "lib${LIB_SUFFIX}")
288+
endif ()
289+
set (LIBRARY_INSTALL_DIR "${LIB_INSTALL_DIR}"
290+
CACHE PATH "Directory of installed libraries, e.g., \"lib64\""
288291
)
289292
mark_as_advanced (LIBRARY_INSTALL_DIR)
290293
set (INCLUDE_INSTALL_DIR include)

0 commit comments

Comments
 (0)