Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 672088 | Differences between
and this patch

Collapse All | Expand All

(-)a/CMakeLists.txt (-14 / +2 lines)
Lines 713-732 if ( ENABLE_CXX11 ) Link Here
713
	add_custom_command(
713
	add_custom_command(
714
		TARGET srt-live-transmit
714
		TARGET srt-live-transmit
715
		POST_BUILD
715
		POST_BUILD
716
		COMMAND ${CMAKE_COMMAND} -E ${REPLI_COMMAND} $<TARGET_FILE:srt-live-transmit> ${stransmit_path})
716
		COMMAND ${CMAKE_COMMAND} -E ${REPLI_COMMAND} srt-live-transmit ${stransmit_path})
717
717
	install(FILES ${stransmit_path} DESTINATION ${CMAKE_INSTALL_BINDIR})
718
	if (SYMLINKABLE)
719
		message(STATUS "BACKWARD COMPATIBLE 'stransmit': will use symbolic link")
720
		srt_install_symlink(srt-live-transmit ${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_BINDIR}/stransmit)
721
	elseif(${CMAKE_MAJOR_VERSION} LESS 3)
722
		message(FATAL_ERROR "Your system can't install symbolic link to 'stransmit', copy-on-install requires cmake at least 3.0.2")
723
	else()
724
		# This installation doesn't work with cmake earlier than 3.0
725
		# (looxlike cmake 2.8 somehow doesn't have a problem with resolving the $<TARGET_FILE_DIR:...>
726
		# inside the generated makefile, but does have problem with its own generated cmake_install.cmake :D)
727
		message(STATUS "BACKWARD COMPATIBLE 'stransmit': will use copying")
728
		install(PROGRAMS ${stransmit_path} DESTINATION ${CMAKE_INSTALL_BINDIR})
729
	endif()
730
718
731
	srt_add_application(srt-file-transmit ${VIRTUAL_srtsupport})
719
	srt_add_application(srt-file-transmit ${VIRTUAL_srtsupport})
732
720
(-)a/scripts/haiUtil.cmake (-6 lines)
Lines 48-52 FUNCTION(join_arguments outvar) Link Here
48
macro(srt_install_symlink filepath sympath)
49
    install(CODE "execute_process(COMMAND ${CMAKE_COMMAND} -E create_symlink ${filepath} ${sympath})")
50
    install(CODE "message(\"-- Created symlink: ${sympath} -> ${filepath}\")")
51
endmacro(srt_install_symlink)
52
53
- 

Return to bug 672088