File tree 1 file changed +14
-9
lines changed
1 file changed +14
-9
lines changed Original file line number Diff line number Diff line change @@ -8,18 +8,23 @@ set(RIME_PLUGINS
8
8
9
9
# symlink plugins
10
10
foreach (plugin ${RIME_PLUGINS} )
11
- execute_process (COMMAND ln -sv
12
- "${CMAKE_SOURCE_DIR} /${plugin} "
13
- "${CMAKE_SOURCE_DIR} /librime/plugins"
14
- )
11
+ if (NOT EXISTS "${CMAKE_SOURCE_DIR} /librime/plugins/${plugin} " )
12
+ file (CREATE_LINK
13
+ "${CMAKE_SOURCE_DIR} /${plugin} "
14
+ "${CMAKE_SOURCE_DIR} /librime/plugins/${plugin} "
15
+ COPY_ON_ERROR SYMBOLIC
16
+ )
17
+ endif ()
15
18
endforeach ()
16
19
17
20
# librime-lua
18
- file (REMOVE "${CMAKE_SOURCE_DIR} /librime/plugins/librime-lua/thirdparty" )
19
- execute_process (COMMAND ln -sv
20
- "${CMAKE_SOURCE_DIR} /librime-lua-deps"
21
- "${CMAKE_SOURCE_DIR} /librime/plugins/librime-lua/thirdparty"
22
- )
21
+ if (NOT EXISTS "${CMAKE_SOURCE_DIR} /librime/plugins/librime-lua/thirdparty" )
22
+ file (CREATE_LINK
23
+ "${CMAKE_SOURCE_DIR} /librime-lua-deps"
24
+ "${CMAKE_SOURCE_DIR} /librime/plugins/librime-lua/thirdparty"
25
+ COPY_ON_ERROR SYMBOLIC
26
+ )
27
+ endif ()
23
28
24
29
# librime-charcode
25
30
option (BUILD_WITH_ICU "" OFF )
You can’t perform that action at this time.
0 commit comments