Re: [CMake] Request to reopen a bug (#13231) and apply patch given in to mainstream

2014-12-22 Thread Domen Vrankar
I request to reopen the bug/feature request (#13231) -- https://www.cmake.org/Bug/view.php?id=13231nbn=1 Hi, I'll have a look at it next week when I'll have more time and get back to you then. Regards, Domen -- Powered by www.kitware.com Please keep messages on-topic and check the CMake

Re: [CMake] Removing compiler options

2014-12-16 Thread Domen Vrankar
This was asked a few years ago and I doubt that things have changed since then... http://www.cmake.org/pipermail/cmake/2010-May/036924.html (http://www.cmake.org/cmake/help/v2.8.10/cmake.html#prop_sf%3aCOMPILE_FLAGS). An alternative would be to use

Re: [CMake] How to set path to library header files?

2014-12-03 Thread Domen Vrankar
2014-12-03 21:22 GMT+01:00 Chris Johnson cxjohn...@gmail.com: I think I've made it work by adding 1 ugly hack and 1 reasonable directive to each library's CMakeLists.txt, which is at least far preferable to adding several new include paths to potentially hundreds of programs which refer to

Re: [CMake] How about GNU Automatic Variables

2014-11-29 Thread Domen Vrankar
Hi, I haven't tested this but I think you could write something like this: add_library(test_single test.c) set_property( TARGET test_single PROPERTY COMPILE_DEFINITIONS DOUBLE=some_val ) add_library(test_double test.c) set_property( TARGET test_double PROPERTY COMPILE_DEFINITIONS

Re: [CMake] How about GNU Automatic Variables

2014-11-29 Thread Domen Vrankar
because I'm not certain how to produce two differently named .o files but maybe you'll be able to figure that out... Regards, Domen 2014-11-29 10:31 GMT+01:00 Domen Vrankar domen.vran...@gmail.com: Hi, I haven't tested this but I think you could write something like this: add_library

Re: [cmake-developers] [PATCH] CPackRPM: unset temporary component variable fixed

2014-11-17 Thread Domen Vrankar
2014-11-17 21:09 GMT+01:00 Brad King brad.k...@kitware.com: On 11/17/2014 02:46 PM, Gauthier Lamaison wrote: I've been trying to make multiple RPMs using components, but it appears that the component variables such as CPACK_RPM_componentName_PACKAGE_REQUIRES are not correctly unset. Worse,

Re: [cmake-developers] [PATCH] CPackRPM: unset temporary component variable fixed

2014-11-17 Thread Domen Vrankar
2014-11-17 23:05 GMT+01:00 Domen Vrankar domen.vran...@gmail.com: 2014-11-17 21:09 GMT+01:00 Brad King brad.k...@kitware.com: On 11/17/2014 02:46 PM, Gauthier Lamaison wrote: I've been trying to make multiple RPMs using components, but it appears that the component variables

Re: [cmake-developers] string SUBSTRING TRUNCATE mode

2014-11-13 Thread Domen Vrankar
This should be a good addition, no? diff --git a/Modules/CPackRPM.cmake b/Modules/CPackRPM.cmake index 56d9b66..66717ef 100644 --- a/Modules/CPackRPM.cmake +++ b/Modules/CPackRPM.cmake @@ -683,9 +683,7 @@ foreach(_RPM_SPEC_HEADER URL REQUIRES SUGGESTS PROVIDES OBSOLETES PREFIX

[cmake-developers] [CPack] [CPackRPM]patch for bug 15209 - handling of symbolic links

2014-11-08 Thread Domen Vrankar
a relative path symlink if needed. Please review the patch and post the feedback. If the patch is OK add it to repository. Thanks, Domen From 0a3098dbeb79c90ac3882b13afa77e6e8ff98d62 Mon Sep 17 00:00:00 2001 From: Domen Vrankar domen.vran...@gmail.com Date: Sat, 8 Nov 2014 22:01:19 +0100 Subject

Re: [CMake] [CPACK] [RPM] Support of %preun and %postun

2014-10-23 Thread Domen Vrankar
2014-10-23 1:57 GMT+02:00 Luc J. Bourhis luc_j_bour...@mac.com: Am I missing something or there is no equivalent of CPACK_RPM_PRE_INSTALL_SCRIPT_FILE to specify %preun or %postun? The variables are missing in documentation but they exist. For %preun you can set

[CMake] Concatenating lists back to string

2014-10-23 Thread Domen Vrankar
Hi, I am trying to convert string to list and back with string(REPLACE) and it doesn't work as expected (tested with cmake 2.8.12 on Ubuntu 14.04 and main branch in git on Ubuntu 14.10). cmake_minimum_required( VERSION 2.8.12 ) project(test_list) set(str_1 abc.def.ghi) message(str_1: ${str_1})

Re: [cmake-developers] [CMake] [CPack] RPM generator creates %dir for /usr/local/xxx

2014-10-22 Thread Domen Vrankar
Moving the conversation to developers mailing list. More docs on this for 2.8.12: http://www.cmake.org/cmake/help/v2.8.12/cpack.html#variable:CPACK_RPM_EXCLUDE_FROM_AUTO_FILELIST_ADDITION I guess that /usr/local may be added to CPACK_RPM_EXCLUDE_FROM_AUTO_FILELIST default list values. For

Re: [cmake-developers] [CPack] [CPackRPM] mantis ticket 13176 CPackRPM support for per-component summary and description

2014-10-21 Thread Domen Vrankar
I also wrote a test and noticed two things: 1) CPackComponentsForAll test is using component names in lower case and component parts in variables in upper case (e.g. COMPONENT headers and CPACK_COMPONENT_HEADERS_DESCRIPTION). Patch uses CPACK_RPM_PACKAGE_COMPONENT variable as part of

Re: [cmake-developers] [CPack] [CPackRPM] mantis ticket 13176 CPackRPM support for per-component summary and description

2014-10-21 Thread Domen Vrankar
2014-10-21 14:52 GMT+02:00 Brad King brad.k...@kitware.com: On 10/21/2014 02:18 AM, Domen Vrankar wrote: Patches must be applied in order: 0001-CPackRPM-component-based-packaging-description-and-s.patch 0001-add-added-semantic-tests-for-rpm-component-descripti.patch Could someone pleas

Re: [cmake-developers] [CPack] [CPackRPM] mantis ticket 13176 CPackRPM support for per-component summary and description

2014-10-18 Thread Domen Vrankar
I also have a question. Would CPack also need something like CPACK_COMPONENT_component_PACKAGE_SUMMARY that could be used by CPACK_RPM_component_PACKAGE_SUMMARY as default value? Not sure of that one. We already have CPACK_COMPONENT_GROUP_CMAKE_DESCRIPTION which may be a default value for

Re: [CMake] [CPack] RPM generator and directory symlink

2014-10-16 Thread Domen Vrankar
A workaround that you could use is to specify something like set(CPACK_RPM_bin_USER_FILELIST %config /subdir) and this will force CPackRPM to treat the symlink as a config file. What is the meaning of bin in the middle of that variable name? CPACK_RPM_USER_FILELIST is used for non

[cmake-developers] CMake and CPack automated testing

2014-10-15 Thread Domen Vrankar
Hi, I was looking at CMake automated tests and did not quite understand how they are intended to be written. Do they only test for e.g. if CPack executes without errors or do they check generated files content (e.g. diff or call for e.g. rpm -qi some_pkg.rpm and then diff the output)? I'm not

Re: [CMake] [CPack] RPM generator and directory symlink

2014-10-15 Thread Domen Vrankar
Hi, I'm assuming that you used something like: install(CODE EXECUTE_PROCESS(COMMAND ln -sf ${SOME_PATH}/subdir-version subdir WORKING_DIRECTORY ${LOCATION_WHERE_CPackRPM_IS_PACKAGING_YOUR_FILES} ) COMPONENT bin) in your CMakeLists.txt Currently CPackRPM doesn't

Re: [cmake-developers] [CPack] [CPackRPM] mantis ticket 13176 CPackRPM support for per-component summary and description

2014-10-14 Thread Domen Vrankar
that could be used by CPACK_RPM_component_PACKAGE_SUMMARY as default value? Thanks, Domen 2014-10-14 0:23 GMT+02:00 Domen Vrankar domen.vran...@gmail.com: Message was sent to early by accident so I'm resending the rest. 2014-10-14 0:17 GMT+02:00 Domen Vrankar domen.vran...@gmail.com: Hi, I

Re: [cmake-developers] [CPack] [CPackRPM] mantis ticket 13176 CPackRPM support for per-component summary and description

2014-10-14 Thread Domen Vrankar
2014-10-14 9:28 GMT+02:00 Eric Noulard eric.noul...@gmail.com: 2014-10-14 9:03 GMT+02:00 Domen Vrankar domen.vran...@gmail.com: Sorry for spamming... I noticed that the previous patch would break user provided rpm spec files so I'm attaching a new patch that fixes that problem with a bit

Re: [cmake-developers] [CPack] Call for volunteer for CPackRPM, CPackDeb maintenance.

2014-10-13 Thread Domen Vrankar
Hello, I have been talking with Eric for the past few days now and would also like to help out with maintaining these two modules. I am a CMake user for about six years now and have also been using CPackRPM but for now I haven no experience with CPackDeb. As suggested by Eric I'll start with

[cmake-developers] [CPack] [CPackRPM] mantis ticket 13176 CPackRPM support for per-component summary and description

2014-10-13 Thread Domen Vrankar
Hi, I extended the proposed patch for ticket 13176 with: - documentation section - CPACK_RPM_component_PACKAGE_DESCRIPTION fallback to CPACK_COMPONENT_compName_DESCRIPTION - handling of cases when one component sets its variable and the other doesn't Regards, Domen -- Powered by

[CMake] providing your own exp file on AIX

2011-09-14 Thread Domen Vrankar
Hi, I'm trying to use my own exp file for linking of a shared library on AIX. Currently CMake generates an objects.exp file and I don't know how to replace it with my own that was used in Makefile files before I switched to CMake and contains less entries than the generated one. Is there a way

<    1   2   3   4