Ok, short answer to #1, no you can't use install(CODE because all your
cmake variables we be evaluated now instead of later.

Same problem though when I use install(SCRIPT...

Run CPack packaging tool...
CPack: Create package using NSIS
CPack: Install projects
CPack: - Run preinstall target for: FreeDV
CPack: - Install project: FreeDV
warning: target '$<TARGET_FILE:freedv>' is not absolute...
warning: target '$<TARGET_FILE:freedv>' does not exist...
C:/msys32/mingw32/bin/objdump.exe: '$<TARGET_FILE:freedv>': No such file
"Dependencies:"

Thanks,
Richard
-- 

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