Project

General

Profile

Bug #2292 ยป destdir-config-install-path-fix.patch

soratobu kuroneko, 10/06/2013 11:27 PM

View differences:

examples/CMakeLists.txt
INSTALL(DIRECTORY ${WT_SOURCE_DIR}/resources DESTINATION ${EXAMPLES_DESTINATION}/${EXAMPLESUBDIR}/${DOCROOTSUBFOLDER}) # Can't safely make symlinks of Windows
ENDIF(INSTALL_RESOURCES)
ELSE(WIN32)
CONFIGURE_FILE(${WT_SOURCE_DIR}/examples/run-example.cmake ${WT_BINARY_DIR}/${EXAMPLENAME} @ONLY)
INSTALL(PROGRAMS ${WT_BINARY_DIR}/${EXAMPLENAME} DESTINATION ${EXAMPLES_DESTINATION}/${EXAMPLESUBDIR})
CONFIGURE_FILE(${WT_SOURCE_DIR}/examples/run-example.cmake ${WT_BINARY_DIR}/${EXAMPLENAME}.sh @ONLY)
INSTALL(PROGRAMS ${WT_BINARY_DIR}/${EXAMPLENAME}.sh DESTINATION ${EXAMPLES_DESTINATION}/${EXAMPLESUBDIR})
IF(INSTALL_RESOURCES)
INSTALL( CODE "EXECUTE_PROCESS(COMMAND ${CMAKE_COMMAND} -E create_symlink ${CMAKE_INSTALL_PREFIX}/share/Wt/resources ${CMAKE_INSTALL_PREFIX}/${EXAMPLES_DESTINATION}/${EXAMPLESUBDIR}/resources)" )
INSTALL( CODE "EXECUTE_PROCESS(COMMAND ${CMAKE_COMMAND} -E create_symlink ${CMAKE_INSTALL_PREFIX}/share/Wt/resources ${DESTDIR}${CMAKE_INSTALL_PREFIX}/${EXAMPLES_DESTINATION}/${EXAMPLESUBDIR}/resources)" )
ENDIF(INSTALL_RESOURCES)
ENDIF(WIN32)
ENDIF(INSTALL_EXAMPLES)
    (1-1/1)