Hi, If you enable CMake_TEST_INSTALL=ON (not enabled by default) you have one more test: CMake.Install and it fails with the following errors on my machine (MacOSX Lion, XCode 4.3, cmake master):
1: -- fixup_bundle: preparing... 1: -- fixup_bundle: copying... 1: -- 1/28: *NOT* copying '/Users/polrop/src/cmake/_build/Tests/CMakeInstall/CMake 2.8-8.app/Contents/bin/ccmake' 1: -- 2/28: *NOT* copying '/Users/polrop/src/cmake/_build/Tests/CMakeInstall/CMake 2.8-8.app/Contents/bin/cmake' 1: -- 3/28: *NOT* copying '/Users/polrop/src/cmake/_build/Tests/CMakeInstall/CMake 2.8-8.app/Contents/bin/cmake-gui' 1: -- 4/28: copying '/usr/X11/lib/libpng15.15.dylib' 1: -- 5/28: copying '/usr/local/Cellar/qt/4.8.1/lib/QtCore.framework/Versions/4/QtCore' 1: -- 6/28: copying '/usr/local/Cellar/qt/4.8.1/lib/QtGui.framework/Versions/4/QtGui' 1: -- 7/28: *NOT* copying '/Users/polrop/src/cmake/_build/Tests/CMakeInstall/CMake 2.8-8.app/Contents/bin/cmakexbuild' 1: -- 8/28: *NOT* copying '/Users/polrop/src/cmake/_build/Tests/CMakeInstall/CMake 2.8-8.app/Contents/bin/cpack' 1: -- 9/28: *NOT* copying '/Users/polrop/src/cmake/_build/Tests/CMakeInstall/CMake 2.8-8.app/Contents/bin/ctest' 1: -- 10/28: copying '/usr/local/lib/libxmlrpc.3.16.dylib' 1: -- 11/28: copying '/usr/local/lib/libxmlrpc_client.3.16.dylib' 1: -- 12/28: copying '/usr/local/lib/libxmlrpc_util.3.16.dylib' 1: -- 13/28: *NOT* copying '/Users/polrop/src/cmake/_build/Tests/CMakeInstall/CMake 2.8-8.app/Contents/MacOS/CMake 2.8-8' 1: -- 14/28: *NOT* copying '/Users/polrop/src/cmake/_build/Tests/CMakeInstall/CMake 2.8-8.app/Contents/share/cmake-2.8/Modules/CPack.OSXScriptLauncher.in' 1: -- fixup_bundle: fixing... 1: -- 15/28: fixing up '/Users/polrop/src/cmake/_build/Tests/CMakeInstall/CMake 2.8-8.app/Contents/bin/ccmake' 1: -- 16/28: fixing up '/Users/polrop/src/cmake/_build/Tests/CMakeInstall/CMake 2.8-8.app/Contents/bin/cmake' 1: -- 17/28: fixing up '/Users/polrop/src/cmake/_build/Tests/CMakeInstall/CMake 2.8-8.app/Contents/bin/cmake-gui' 1: -- 18/28: fixing up '/Users/polrop/src/cmake/_build/Tests/CMakeInstall/CMake 2.8-8.app/Contents/MacOS/libpng15.15.dylib' 1: -- 19/28: fixing up '/Users/polrop/src/cmake/_build/Tests/CMakeInstall/CMake 2.8-8.app/Contents/Frameworks/QtCore.framework/Versions/4/QtCore' 1: install_name_tool: can't open input file: /Users/polrop/src/cmake/_build/Tests/CMakeInstall/CMake 2.8-8.app/Contents/Frameworks/QtCore.framework/Versions/4/QtCore for writing (Permission denied) 1: install_name_tool: can't lseek to offset: 0 in file: /Users/polrop/src/cmake/_build/Tests/CMakeInstall/CMake 2.8-8.app/Contents/Frameworks/QtCore.framework/Versions/4/QtCore for writing (Bad file descriptor) 1: install_name_tool: can't write new headers in file: /Users/polrop/src/cmake/_build/Tests/CMakeInstall/CMake 2.8-8.app/Contents/Frameworks/QtCore.framework/Versions/4/QtCore (Bad file descriptor) 1: install_name_tool: can't close written on input file: /Users/polrop/src/cmake/_build/Tests/CMakeInstall/CMake 2.8-8.app/Contents/Frameworks/QtCore.framework/Versions/4/QtCore (Bad file descriptor) 1: -- 20/28: fixing up '/Users/polrop/src/cmake/_build/Tests/CMakeInstall/CMake 2.8-8.app/Contents/Frameworks/QtGui.framework/Versions/4/QtGui' 1: install_name_tool: can't open input file: /Users/polrop/src/cmake/_build/Tests/CMakeInstall/CMake 2.8-8.app/Contents/Frameworks/QtGui.framework/Versions/4/QtGui for writing (Permission denied) 1: install_name_tool: can't lseek to offset: 0 in file: /Users/polrop/src/cmake/_build/Tests/CMakeInstall/CMake 2.8-8.app/Contents/Frameworks/QtGui.framework/Versions/4/QtGui for writing (Bad file descriptor) 1: install_name_tool: can't write new headers in file: /Users/polrop/src/cmake/_build/Tests/CMakeInstall/CMake 2.8-8.app/Contents/Frameworks/QtGui.framework/Versions/4/QtGui (Bad file descriptor) 1: install_name_tool: can't close written on input file: /Users/polrop/src/cmake/_build/Tests/CMakeInstall/CMake 2.8-8.app/Contents/Frameworks/QtGui.framework/Versions/4/QtGui (Bad file descriptor) That's because they are readonly. If you change the code like this: diff --git a/Modules/BundleUtilities.cmake b/Modules/BundleUtilities.cmake index 0143d59..d664e92 100644 --- a/Modules/BundleUtilities.cmake +++ b/Modules/BundleUtilities.cmake @@ -585,9 +585,9 @@ function(fixup_bundle_item resolved_embedded_item exepath dirs) endif(NOT "${${rkey}_EMBEDDED_ITEM}" STREQUAL "") endforeach(pr) - if(BU_CHMOD_BUNDLE_ITEMS) + # if(BU_CHMOD_BUNDLE_ITEMS) execute_process(COMMAND chmod u+w "${resolved_embedded_item}") - endif() + # endif() # Change this item's id and all of its references in one call # to install_name_tool: It works well. As for the CPACK_INSTALLER_PROGRAM, I don't know how to set BU_CHMOD_BUNDLE_ITEMS so that it is taken into account. Any idea? Thanks, -- Nicolas Desprès -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers