[CMake] CPACK issue with symbolic links

2014-02-24 Thread Anil Gunturu
While to trying to create an RPM package using CPACK, we are encountering an issue when symbolic links are present. We are using the CPACK_INSTALLED_DIRECTORIES to specify the directories for packaging. It seems like CPACK is not in the correct directory when creating the symbolic link. /buildd

[CMake] Cmake hangs when a custom target for running cpack is added.

2013-08-05 Thread Anil Gunturu
Hi, A custom target in the CMakeLists.txt to run cpack seems to create a deadlock. For example the following code hangs after emitting: CPack: Create package using RPM CPack: Install projects CPack: - Install directory: /home/agunturu/projects/rpm/.install/extra CPack: - Run preinstall target for:

[CMake] Example use of CPACK_INSTALL_COMMANDS

2013-07-17 Thread Anil Gunturu
Can someone please share an example using CPACK_INSTALL_COMMAND? More specifically, I am trying to avoid cpack installing the files using the "make install". I prefer to use CPACK_INSTALLED_DIRECTORIES to get a fine grain control. Is there a way to override the default files that CPACK installs?

Re: [CMake] CPACK RPM compression type and level

2013-07-02 Thread Anil Gunturu
COMPRESSION_TYPE STREQUAL "bzip2") IF(CPACK_RPM_COMPRESSION_TYPE STREQUAL "gzip") - SET(CPACK_RPM_COMPRESSION_TYPE_TMP "%define _binary_payload w9.gzdio") + SET(CPACK_RPM_COMPRESSION_TYPE_TMP "%define _binary_payload w${CPACK_RPM_COMPRESSION_LEVEL}.gz

[CMake] CPACK RPM compression type and level

2013-07-01 Thread Anil Gunturu
Hi, I understand that CPACK_RPM_COMPRESSION_TYPE can used to change the compression type. Is it also possible to specify the compression level? Selecting a compression type of gzip puts the following line in the spec file: %define _binary_payload w9.gzdio But is it possible specific fast compres

[CMake] CMAKE_BUILD_TYPE case sensitivity

2013-06-24 Thread Anil Gunturu
Is the CMAKE_BUILD_TYPE case sensitive. I have seen references to both "Debug" and "DEBUG" in the mailing lists. Thanks, -Anil -- 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] CPack and ExternalProject_Add

2013-06-18 Thread Anil Gunturu
Is there a way to use CPack to create RPMs for targets added using ExternalProject_Add? Specifically these targets are not CMake targets and use autotools to build (./configure && make). As an example I am using the following command to add the externalproject: # add an external project target fo