Skip to content

Commit 911e2b0

Browse files
aboseleyAdam Boseley
authored and
Adam Boseley
committed
By default use <prefix> relative paths when installing
This allows the config file to keep working when it is installed to a non-standard location from a make DESTDIR=<location> install
1 parent d4a49cf commit 911e2b0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,11 @@ SET(LIB_SUFFIX "" CACHE STRING "Optional arch-dependent suffix for the library i
2727

2828
SET(RUNTIME_INSTALL_DIR bin
2929
CACHE PATH "Install dir for executables and dlls")
30-
SET(ARCHIVE_INSTALL_DIR ${CMAKE_INSTALL_PREFIX}/lib${LIB_SUFFIX}
30+
SET(ARCHIVE_INSTALL_DIR lib${LIB_SUFFIX}
3131
CACHE PATH "Install dir for static libraries")
32-
SET(LIBRARY_INSTALL_DIR ${CMAKE_INSTALL_PREFIX}/lib${LIB_SUFFIX}
32+
SET(LIBRARY_INSTALL_DIR lib${LIB_SUFFIX}
3333
CACHE PATH "Install dir for shared libraries")
34-
SET(INCLUDE_INSTALL_DIR ${CMAKE_INSTALL_PREFIX}/include
34+
SET(INCLUDE_INSTALL_DIR include
3535
CACHE PATH "Install dir for headers")
3636
SET(PACKAGE_INSTALL_DIR lib${LIB_SUFFIX}/cmake
3737
CACHE PATH "Install dir for cmake package config files")

0 commit comments

Comments
 (0)