File tree 3 files changed +11
-5
lines changed
3 files changed +11
-5
lines changed Original file line number Diff line number Diff line change @@ -17,15 +17,17 @@ IF(NOT WIN32)
17
17
ENDIF (NOT CMAKE_BUILD_TYPE )
18
18
ENDIF (NOT WIN32 )
19
19
20
+ SET (LIB_SUFFIX "" CACHE STRING "Optional arch-dependent suffix for the library installation directory" )
21
+
20
22
SET (RUNTIME_INSTALL_DIR bin
21
23
CACHE PATH "Install dir for executables and dlls" )
22
- SET (ARCHIVE_INSTALL_DIR lib
24
+ SET (ARCHIVE_INSTALL_DIR lib${LIB_SUFFIX}
23
25
CACHE PATH "Install dir for static libraries" )
24
- SET (LIBRARY_INSTALL_DIR lib
26
+ SET (LIBRARY_INSTALL_DIR lib${LIB_SUFFIX}
25
27
CACHE PATH "Install dir for shared libraries" )
26
28
SET (INCLUDE_INSTALL_DIR include
27
29
CACHE PATH "Install dir for headers" )
28
- SET (PACKAGE_INSTALL_DIR lib/cmake
30
+ SET (PACKAGE_INSTALL_DIR lib${LIB_SUFFIX} /cmake
29
31
CACHE PATH "Install dir for cmake package config files" )
30
32
MARK_AS_ADVANCED ( RUNTIME_INSTALL_DIR ARCHIVE_INSTALL_DIR INCLUDE_INSTALL_DIR PACKAGE_INSTALL_DIR )
31
33
@@ -101,7 +103,7 @@ IF(JSONCPP_WITH_PKGCONFIG_SUPPORT)
101
103
"pkg-config/jsoncpp.pc"
102
104
@ONLY)
103
105
INSTALL (FILES "${CMAKE_BINARY_DIR} /pkg-config/jsoncpp.pc"
104
- DESTINATION "${CMAKE_INSTALL_PREFIX} /lib/pkgconfig" )
106
+ DESTINATION "${CMAKE_INSTALL_PREFIX} /lib${LIB_SUFFIX} /pkgconfig" )
105
107
ENDIF (JSONCPP_WITH_PKGCONFIG_SUPPORT)
106
108
107
109
IF (JSONCPP_WITH_CMAKE_PACKAGE)
Original file line number Diff line number Diff line change 1
1
prefix=@CMAKE_INSTALL_PREFIX@
2
2
exec_prefix=${prefix}
3
- libdir=${exec_prefix}/lib
3
+ libdir=${exec_prefix}/@LIBRARY_INSTALL_DIR@
4
4
includedir=${prefix}/@INCLUDE_INSTALL_DIR@
5
5
6
6
Name: jsoncpp
Original file line number Diff line number Diff line change 1
1
OPTION (JSONCPP_LIB_BUILD_SHARED "Build jsoncpp_lib as a shared library." OFF )
2
+ IF (BUILD_SHARED_LIBS )
3
+ SET (JSONCPP_LIB_BUILD_SHARED ON )
4
+ ENDIF (BUILD_SHARED_LIBS )
5
+
2
6
IF (JSONCPP_LIB_BUILD_SHARED)
3
7
SET (JSONCPP_LIB_TYPE SHARED)
4
8
ADD_DEFINITIONS ( -DJSON_DLL_BUILD )
You can’t perform that action at this time.
0 commit comments