Clean up tdelfeditor warnings in CMake builds

pull/1/head
Timothy Pearson 13 years ago
parent 3b4610f57a
commit e4bd3f0771

@ -873,14 +873,15 @@ macro( tde_add_executable _arg_target )
# embed icon, name, and metadata # embed icon, name, and metadata
set( ELF_EMBEDDING_METADATA "\"${_target}\" \"${_description}\" \"${_license}\" \"${_copyright}\" \"${_authors}\" \"${_product}\" \"${_organization}\" \"${_version}\" \"${_datetime}\" \"${_target}\" \"${_notes}\"" ) set( ELF_EMBEDDING_METADATA "\"${_target}\" \"${_description}\" \"${_license}\" \"${_copyright}\" \"${_authors}\" \"${_product}\" \"${_organization}\" \"${_version}\" \"${_datetime}\" \"${_target}\" \"${_notes}\"" )
separate_arguments( ELF_EMBEDDING_METADATA ) separate_arguments( ELF_EMBEDDING_METADATA )
if( EXISTS ${CMAKE_INSTALL_PREFIX}/bin/tdelfeditor )
add_custom_command( add_custom_command(
TARGET ${_target} TARGET ${_target}
POST_BUILD POST_BUILD
COMMAND ./tdelfeditor -m ${CMAKE_CURRENT_BINARY_DIR}/${_target} ${ELF_EMBEDDING_METADATA} || true COMMAND ${CMAKE_INSTALL_PREFIX}/bin/tdelfeditor -m ${CMAKE_CURRENT_BINARY_DIR}/${_target} ${ELF_EMBEDDING_METADATA} || true
COMMAND ./tdelfeditor -e ${CMAKE_CURRENT_BINARY_DIR}/${_target} || true COMMAND ${CMAKE_INSTALL_PREFIX}/bin/tdelfeditor -e ${CMAKE_CURRENT_BINARY_DIR}/${_target} || true
COMMAND ./tdelfeditor -t ${CMAKE_CURRENT_BINARY_DIR}/${_target} ${_target} || true COMMAND ${CMAKE_INSTALL_PREFIX}/bin/tdelfeditor -t ${CMAKE_CURRENT_BINARY_DIR}/${_target} ${_target} || true
WORKING_DIRECTORY ${CMAKE_INSTALL_PREFIX}/bin
) )
endif( EXISTS ${CMAKE_INSTALL_PREFIX}/bin/tdelfeditor )
endmacro( tde_add_executable ) endmacro( tde_add_executable )

Loading…
Cancel
Save