Hi, I am new here! I have a problem with my install(SCRIPT), it does
fixup_bundle for all targets under ${CMAKE_INSTALL_PREFIX} and strip &
upx all executables + .dlls under it. But I want to do upx and strip
only when I am creating a package(make package, not make install).
I have tried using:

if(DEFINED CPACK_OUTPUT_CONFIG_FILE)
if(DEFINED CPACK_PROJECT_CONFIG_FILE)
if(DEFINED CPACK_GENERATOR)

As far as I understand CPack just installs using CMake somewhere into
package directory. But I don't know if its possible to use this.
Should I check these variables in CMakeLists.txt and use
configure_file to pass variables to the script?
-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake

Reply via email to