[CMake] cmake and upx
    Filipe Sousa 
    natros at gmail.com
       
    Tue Jan 29 07:30:46 EST 2008
    
    
  
Hi!
I'm trying to use upx to compress the final executable but I have a
few problems.
What I did was adding a custom command:
  add_executable(gal WIN32 ${sources})
  get_property(galpath TARGET gal PROPERTY LOCATION)
  add_custom_command(
    TARGET gal POST_BUILD
    COMMAND upx ${galpath})
The problem happens when I run make install or make package that
relinks the executable. I can disable relinking by changing
CMAKE_SKIP_RPATH but i'm not sure if this is the best option.
I could change CMAKE_STRIP to point to upx or is there a better
solution (install(SCRIPT))?
-- 
Filipe Sousa
    
    
More information about the CMake
mailing list