diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-01-19 23:27:43 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-01-19 23:27:43 -0600 |
commit | e4bd3f07716f523a53de1840da19417a08c0c1f1 (patch) | |
tree | 3568bf318224f4f6211e5be18489be4de1520e40 /modules | |
parent | 3b4610f57abe8c31ab431cfae9a4b6e624e587b2 (diff) | |
download | tde-cmake-e4bd3f07716f523a53de1840da19417a08c0c1f1.tar.gz tde-cmake-e4bd3f07716f523a53de1840da19417a08c0c1f1.zip |
Clean up tdelfeditor warnings in CMake builds
Diffstat (limited to 'modules')
-rw-r--r-- | modules/TDEMacros.cmake | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/modules/TDEMacros.cmake b/modules/TDEMacros.cmake index ce63deb..075b7eb 100644 --- a/modules/TDEMacros.cmake +++ b/modules/TDEMacros.cmake @@ -873,14 +873,15 @@ macro( tde_add_executable _arg_target ) # embed icon, name, and metadata set( ELF_EMBEDDING_METADATA "\"${_target}\" \"${_description}\" \"${_license}\" \"${_copyright}\" \"${_authors}\" \"${_product}\" \"${_organization}\" \"${_version}\" \"${_datetime}\" \"${_target}\" \"${_notes}\"" ) separate_arguments( ELF_EMBEDDING_METADATA ) - add_custom_command( - TARGET ${_target} - POST_BUILD - COMMAND ./tdelfeditor -m ${CMAKE_CURRENT_BINARY_DIR}/${_target} ${ELF_EMBEDDING_METADATA} || true - COMMAND ./tdelfeditor -e ${CMAKE_CURRENT_BINARY_DIR}/${_target} || true - COMMAND ./tdelfeditor -t ${CMAKE_CURRENT_BINARY_DIR}/${_target} ${_target} || true - WORKING_DIRECTORY ${CMAKE_INSTALL_PREFIX}/bin - ) + if( EXISTS ${CMAKE_INSTALL_PREFIX}/bin/tdelfeditor ) + add_custom_command( + TARGET ${_target} + POST_BUILD + COMMAND ${CMAKE_INSTALL_PREFIX}/bin/tdelfeditor -m ${CMAKE_CURRENT_BINARY_DIR}/${_target} ${ELF_EMBEDDING_METADATA} || true + COMMAND ${CMAKE_INSTALL_PREFIX}/bin/tdelfeditor -e ${CMAKE_CURRENT_BINARY_DIR}/${_target} || true + 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 ) |