Blame |
    Last modification |
    View Log
    | Download
    | RSS feed
  
  
# We need to execute this script at installation time because the
 
# DESTDIR environment variable may be unset at configuration time.
 
# See PR8397.
 
 
 
# Set to an arbitrary directory to silence GNUInstallDirs warnings
 
# regarding being unable to determine libdir.
 
set(CMAKE_INSTALL_LIBDIR 
"lib")  
 
 
function(install_symlink name target outdir
)  
  set(DESTDIR 
$ENV{DESTDIR})  
  if(NOT IS_ABSOLUTE "${outdir}")  
    set(outdir 
"${CMAKE_INSTALL_PREFIX}/${outdir}")  
  set(outdir 
"${DESTDIR}${outdir}")  
 
 
 
 
    COMMAND "${CMAKE_COMMAND}" -E create_symlink "${target}" "${name}"
 
    WORKING_DIRECTORY "${outdir}" ERROR_VARIABLE has_err)
 
  if(CMAKE_HOST_WIN32 
AND has_err
)  
      COMMAND "${CMAKE_COMMAND}" -E copy "${target}" "${name}"
 
      WORKING_DIRECTORY "${outdir}")