This repository has been archived by the owner on Nov 21, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall-symlink-old-cmake.patch
41 lines (40 loc) · 1.8 KB
/
install-symlink-old-cmake.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
--- aux/zeekctl/cmake/InstallSymlink.cmake-orig
+++ aux/zeekctl/cmake/InstallSymlink.cmake
@@ -17,25 +17,17 @@ macro(InstallSymlink _filepath _sympath)
get_filename_component(_symname ${_sympath} NAME)
get_filename_component(_installdir ${_sympath} PATH)
- if (BINARY_PACKAGING_MODE)
- execute_process(COMMAND "${CMAKE_COMMAND}" -E create_symlink
- ${_filepath}
- ${CMAKE_CURRENT_BINARY_DIR}/${_symname})
- install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${_symname}
- DESTINATION ${_installdir})
- else ()
- # scripting the symlink installation at install time should work
- # for CMake 2.6.x and 2.8.x
- install(CODE "
- if (\"\$ENV{DESTDIR}\" STREQUAL \"\")
- execute_process(COMMAND \"${CMAKE_COMMAND}\" -E create_symlink
- ${_filepath}
- ${_installdir}/${_symname})
- else ()
- execute_process(COMMAND \"${CMAKE_COMMAND}\" -E create_symlink
- ${_filepath}
- \$ENV{DESTDIR}/${_installdir}/${_symname})
- endif ()
- ")
- endif ()
+ # scripting the symlink installation at install time should work
+ # for CMake 2.6.x and 2.8.x
+ install(CODE "
+ if (\"\$ENV{DESTDIR}\" STREQUAL \"\")
+ execute_process(COMMAND \"${CMAKE_COMMAND}\" -E create_symlink
+ ${_filepath}
+ ${_installdir}/${_symname})
+ else ()
+ execute_process(COMMAND \"${CMAKE_COMMAND}\" -E create_symlink
+ ${_filepath}
+ \$ENV{DESTDIR}/${_installdir}/${_symname})
+ endif ()
+ ")
endmacro(InstallSymlink)