1 # We need to execute this script at installation time because the
2 # DESTDIR environment variable may be unset at configuration time.
6 set(LINK_OR_COPY create_symlink)
7 set(DESTDIR $ENV{DESTDIR})
12 # CMAKE_EXECUTABLE_SUFFIX is undefined on cmake scripts. See PR9286.
14 set(EXECUTABLE_SUFFIX ".exe")
16 set(EXECUTABLE_SUFFIX "")
19 set(bindir "${DESTDIR}${CMAKE_INSTALL_PREFIX}/bin/")
21 message("Creating llvm-ranlib")
24 COMMAND "${CMAKE_COMMAND}" -E ${LINK_OR_COPY} "llvm-ar${EXECUTABLE_SUFFIX}" "llvm-ranlib${EXECUTABLE_SUFFIX}"
25 WORKING_DIRECTORY "${bindir}")
27 message("Creating llvm-lib")
30 COMMAND "${CMAKE_COMMAND}" -E ${LINK_OR_COPY} "llvm-ar${EXECUTABLE_SUFFIX}" "llvm-lib${EXECUTABLE_SUFFIX}"
31 WORKING_DIRECTORY "${bindir}")