Allow passing LIB_INSTALL_DIR as well
That variable (but not `CMAKE_INSTALL_LIBDIR`) is apparently passed when building for Fedora with the `%cmake` RPM macro.
This commit is contained in:
parent
dcb1d896c2
commit
fe43824c98
|
@ -69,11 +69,15 @@ elseif (CONFIGURATION_TARGET_SUFFIX)
|
|||
set(TARGET_SUFFIX "-${CONFIGURATION_TARGET_SUFFIX}")
|
||||
endif ()
|
||||
|
||||
# find standard installation directories - note: Allow overriding CMAKE_INSTALL_LIBDIR but don't use the default from
|
||||
# GNUInstallDirs (as an Arch Linux user this feels odd and I also want to avoid breaking existing build scripts).
|
||||
set(CMAKE_INSTALL_LIBDIR
|
||||
# find standard installation directories - note: Allow overriding CMAKE_INSTALL_LIBDIR and LIB_INSTALL_DIR but don't use the
|
||||
# default from GNUInstallDirs (as an Arch Linux user this feels odd and I also want to avoid breaking existing build
|
||||
# scripts).
|
||||
set(LIB_INSTALL_DIR
|
||||
"lib"
|
||||
CACHE STRING "sets the directory to install libraries to (within the prefix)")
|
||||
set(CMAKE_INSTALL_LIBDIR
|
||||
"${LIB_INSTALL_DIR}"
|
||||
CACHE STRING "sets the directory to install libraries to (within the prefix)")
|
||||
include(GNUInstallDirs)
|
||||
|
||||
# define a few variables
|
||||
|
|
Loading…
Reference in New Issue