2012/11/27 Paolo Ciccone <phcicc...@gmail.com>: > I have prepared a testcase that I can use to replicate the issue all the > time. > I am running Mac OS 10.8.2 (ML) and I tested this case with both CMake/CPack > 2.8.10.1 and 2.8.9. > > The command issued is simply: > > cmake -G Xcode > > You can find the test case, which is stripped down to almost nothing here: > > https://dl.dropbox.com/u/3701566/cmake_cpack_test.zip
If you open your CMakeLists.txt in an hexadecimal editor you'll see that you have spurious C2 A0 UTF-8 characters (unbreakable space) at the end of the following variables: CPACK_PACKAGE_VENDOR CPACK_PACKAGE_VERSION_MAJOR CPACK_PACKAGE_VERSION_MINOR CPACK_PACKAGE_VERSION_PATCH CPACK_PACKAGE_DESCRIPTION_SUMMARY CPACK_RESOURCE_FILE_WELCOME CPACK_RESOURCE_FILE_README CPACK_RESOURCE_FILE_LICENSE so statement like set(CPACK_RESOURCE_FILE_WELCOME "${CMAKE_CURRENT_SOURCE_DIR}/intro.rtf") may be puzzling CMake because the extraneous "unbreakable space" may not be considered as a separator. On linux it seems to work but the behavior on the Mac may be different. Could you try replacing your CMakeLists.txt with the one attached to this mail and retry. -- Erk Le gouvernement représentatif n'est pas la démocratie -- http://www.le-message.org
# # MyApp # cmake_minimum_required(VERSION 2.8) # see http://www.cmake.org/cmake/help/cmake-2-8-docs.html#policy:CMP0012 if(POLICY CMP0012) cmake_policy(SET CMP0012 OLD) endif() # see http://www.cmake.org/cmake/help/cmake-2-8-docs.html#policy:CMP0015 if(POLICY CMP0015) cmake_policy(SET CMP0015 OLD) endif() # Set the project name PROJECT("My Project") # # OS abbreviation # IF(APPLE) SET(OS_CODE "M") ELSEIF(WIN32) SET(OS_CODE "W") ENDIF() SET(CMAKE_CONFIGURATION_TYPES "Debug;Release" CACHE STRING "limit configs" FORCE) # # Version number # SET(MY_VERSION_MAJOR "3") SET(MY_VERSION_MINOR "0") SET(MY_VERSION_PATCH "0") SET(MY_VERSION "${MY_VERSION_MAJOR}.${MY_VERSION_MINOR}.${MY_VERSION_PATCH}") ############################# # Targets ############################# ADD_CUSTOM_TARGET(REBUILD_UI COMMAND echo "Rebuilding the UI files...") # # Installer # INCLUDE(InstallRequiredSystemLibraries) SET(CPACK_PACKAGE_NAME "MyApp ${MY_VERSION_MAJOR} ${HOST_NAME}") SET(CPACK_PACKAGE_VENDOR "Pret-a-3D") SET(CPACK_PACKAGE_VERSION "3.0.0") SET(CPACK_PACKAGE_VERSION_MAJOR "3") SET(CPACK_PACKAGE_VERSION_MINOR "0") SET(CPACK_PACKAGE_VERSION_PATCH "0") SET(CPACK_PACKAGE_FILE_NAME "MyApp_${MY_VERSION_MAJOR}_${HOST_NAME}") SET(CPACK_PACKAGE_DESCRIPTION_SUMMARY "MyApp 3 for ${HOST_NAME}") SET(CPACK_PACKAGE_INSTALL_REGISTRY_KEY "MyApp ${MY_VERSION_MAJOR}.${MY_VERSION_MINOR}") SET(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_CURRENT_SOURCE_DIR}/intro.rtf") IF(APPLE) SET(CPACK_GENERATOR "PackageMaker") ELSEIF(WIN32) SET(CPACK_GENERATOR "NSIS") ENDIF() SET(CPACK_PACKAGE_DESCRIPTION_SUMMARY "MyApp ${MY_VERSION_MAJOR}") IF(APPLE) SET(CMAKE_INSTALL_PREFIX "/Applications") SET(CPACK_PACKAGE_INSTALL_DIRECTORY "/Applications") ENDIF() SET(CPACK_PACKAGE_DESCRIPTION_FILE "${CMAKE_SOURCE_DIR}/welcome.txt") SET(CPACK_RESOURCE_FILE_WELCOME "${CMAKE_CURRENT_SOURCE_DIR}/intro.rtf") SET(CPACK_RESOURCE_FILE_README "${CMAKE_SOURCE_DIR}/welcome.txt") SET(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_SOURCE_DIR}/license.txt") INCLUDE(CPack)
-- 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://www.cmake.org/mailman/listinfo/cmake