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 )
add_custom_command( if( EXISTS ${CMAKE_INSTALL_PREFIX}/bin/tdelfeditor )
TARGET ${_target} add_custom_command(
POST_BUILD TARGET ${_target}
COMMAND ./tdelfeditor -m ${CMAKE_CURRENT_BINARY_DIR}/${_target} ${ELF_EMBEDDING_METADATA} || true POST_BUILD
COMMAND ./tdelfeditor -e ${CMAKE_CURRENT_BINARY_DIR}/${_target} || true COMMAND ${CMAKE_INSTALL_PREFIX}/bin/tdelfeditor -m ${CMAKE_CURRENT_BINARY_DIR}/${_target} ${ELF_EMBEDDING_METADATA} || true
COMMAND ./tdelfeditor -t ${CMAKE_CURRENT_BINARY_DIR}/${_target} ${_target} || true COMMAND ${CMAKE_INSTALL_PREFIX}/bin/tdelfeditor -e ${CMAKE_CURRENT_BINARY_DIR}/${_target} || true
WORKING_DIRECTORY ${CMAKE_INSTALL_PREFIX}/bin COMMAND ${CMAKE_INSTALL_PREFIX}/bin/tdelfeditor -t ${CMAKE_CURRENT_BINARY_DIR}/${_target} ${_target} || true
) )
endif( EXISTS ${CMAKE_INSTALL_PREFIX}/bin/tdelfeditor )
endmacro( tde_add_executable ) endmacro( tde_add_executable )

Loading…
Cancel
Save