1 From acd1a5a8052fce1ed57cceb1d63a758414a0573a Mon Sep 17 00:00:00 2001
2 From: microcai <microcaicai@gmail.com>
3 Date: Fri, 18 Nov 2022 12:57:17 +0800
4 Subject: [PATCH] fix install
7 CMakeLists.txt | 6 ++----
8 1 file changed, 2 insertions(+), 4 deletions(-)
10 diff --git a/CMakeLists.txt b/CMakeLists.txt
11 index ef93783f..573805ad 100644
14 @@ -162,6 +162,8 @@ if("${CMAKE_INSTALL_PREFIX}" STREQUAL "/usr" OR "${CMAKE_INSTALL_PREFIX}" STREQU
15 set(SYSTEM_DIR_INSTALL TRUE)
18 +option(INSTALL_LIB "install lib" "lib")
19 +option(INSTALL_SHARED "install lib" "lib")
21 if(UNIX AND SYSTEM_DIR_INSTALL)
22 # Install into the system (/usr/bin or /usr/local/bin)
23 @@ -170,8 +172,6 @@ if(UNIX AND SYSTEM_DIR_INSTALL)
24 set(INSTALL_EXAMPLES "share/${project}") # /usr/[local]/share/<project>
25 set(INSTALL_DATA "share/${project}") # /usr/[local]/share/<project>
26 set(INSTALL_BIN "bin") # /usr/[local]/bin
27 - set(INSTALL_SHARED "lib") # /usr/[local]/lib
28 - set(INSTALL_LIB "lib") # /usr/[local]/lib
29 set(INSTALL_INCLUDE "include") # /usr/[local]/include
30 set(INSTALL_DOC "share/doc/${project}") # /usr/[local]/share/doc/<project>
31 set(INSTALL_SHORTCUTS "share/applications") # /usr/[local]/share/applications
32 @@ -184,8 +184,6 @@ else()
33 set(INSTALL_EXAMPLES ".") # ./
34 set(INSTALL_DATA ".") # ./
35 set(INSTALL_BIN ".") # ./
36 - set(INSTALL_SHARED "lib") # ./lib
37 - set(INSTALL_LIB "lib") # ./lib
38 set(INSTALL_INCLUDE "include") # ./include
39 set(INSTALL_DOC "doc") # ./doc
40 set(INSTALL_SHORTCUTS "misc") # ./misc