@@ -78,7 +78,7 @@ if(BUILD_SHARED_LIBS)
78
78
if (XCODE_VERSION )
79
79
set_target_properties (rime PROPERTIES INSTALL_NAME_DIR "@rpath" )
80
80
endif ()
81
- install (TARGETS rime DESTINATION ${LIB_INSTALL_DIR } )
81
+ install (TARGETS rime DESTINATION ${CMAKE_INSTALL_FULL_LIBDIR } )
82
82
83
83
if (BUILD_SEPARATE_LIBS)
84
84
add_library (rime-dict ${rime_dict_module_src} )
@@ -91,7 +91,7 @@ if(BUILD_SHARED_LIBS)
91
91
if (XCODE_VERSION )
92
92
set_target_properties (rime-dict PROPERTIES INSTALL_NAME_DIR "@rpath" )
93
93
endif ()
94
- install (TARGETS rime-dict DESTINATION ${LIB_INSTALL_DIR } )
94
+ install (TARGETS rime-dict DESTINATION ${CMAKE_INSTALL_FULL_LIBDIR } )
95
95
96
96
add_library (rime-gears ${rime_gears_src} )
97
97
target_link_libraries (rime-gears
@@ -104,7 +104,7 @@ if(BUILD_SHARED_LIBS)
104
104
if (XCODE_VERSION )
105
105
set_target_properties (rime-gears PROPERTIES INSTALL_NAME_DIR "@rpath" )
106
106
endif ()
107
- install (TARGETS rime-gears DESTINATION ${LIB_INSTALL_DIR } )
107
+ install (TARGETS rime-gears DESTINATION ${CMAKE_INSTALL_FULL_LIBDIR } )
108
108
109
109
add_library (rime-levers ${rime_levers_src} )
110
110
target_link_libraries (rime-levers
@@ -117,7 +117,7 @@ if(BUILD_SHARED_LIBS)
117
117
if (XCODE_VERSION )
118
118
set_target_properties (rime-levers PROPERTIES INSTALL_NAME_DIR "@rpath" )
119
119
endif ()
120
- install (TARGETS rime-levers DESTINATION ${LIB_INSTALL_DIR } )
120
+ install (TARGETS rime-levers DESTINATION ${CMAKE_INSTALL_FULL_LIBDIR } )
121
121
122
122
if (rime_plugins_library)
123
123
add_library (rime-plugins
@@ -134,12 +134,12 @@ if(BUILD_SHARED_LIBS)
134
134
if (XCODE_VERSION )
135
135
set_target_properties (rime-plugins PROPERTIES INSTALL_NAME_DIR "@rpath" )
136
136
endif ()
137
- install (TARGETS rime-plugins DESTINATION ${LIB_INSTALL_DIR } )
137
+ install (TARGETS rime-plugins DESTINATION ${CMAKE_INSTALL_FULL_LIBDIR } )
138
138
endif ()
139
139
endif ()
140
140
else ()
141
141
add_library (rime-static STATIC ${rime_src} )
142
142
target_link_libraries (rime-static ${rime_deps} )
143
143
set_target_properties (rime-static PROPERTIES OUTPUT_NAME "rime" PREFIX "lib" )
144
- install (TARGETS rime-static DESTINATION ${LIB_INSTALL_DIR } )
144
+ install (TARGETS rime-static DESTINATION ${CMAKE_INSTALL_FULL_LIBDIR } )
145
145
endif ()
0 commit comments