Skip to content

Commit 01d0b4c

Browse files
author
Peng Wu
committed
1 parent 46ebc38 commit 01d0b4c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

CMakeLists.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ cmake_minimum_required(VERSION 3.5)
2121
set (PACKAGE_NAME opencc)
2222
project (${PACKAGE_NAME} CXX)
2323
include (CTest)
24+
include(GNUInstallDirs)
2425

2526
######## Options
2627
option(BUILD_DOCUMENTATION "Use Doxygen to create the HTML based API documentation" OFF)
@@ -78,6 +79,11 @@ endif()
7879

7980
######## Directory
8081

82+
set(LIB_INSTALL_DIR "${CMAKE_INSTALL_LIBDIR}" CACHE PATH "")
83+
if(CMAKE_INSTALL_LIBDIR MATCHES "lib64$")
84+
set(LIB_SUFFIX 64)
85+
endif()
86+
8187
set (DIR_PREFIX ${CMAKE_INSTALL_PREFIX})
8288
set (DIR_INCLUDE ${DIR_PREFIX}/include)
8389
set (DIR_SHARE ${DIR_PREFIX}/share)

0 commit comments

Comments
 (0)