[CMake] Cpack Installing extra files depending on generator type

2011-12-08 Thread vivek goel
I want to generate two package type . So I am using following syntax in my CMakeLists.txt SET(CPACK_GENERATOR "TGZ;RPM") Now problem is that I want to install some extra files in Generator RPM. And I want to set different Install RPM prefix. How can I do that ? -- regards

Re: [CMake] Cpack Installing extra files depending on generator type

2011-12-09 Thread vivek goel
Hi, Can you please give an example for install(SCRIPT ...) So I can install a init-script with rpm ? On 12/9/11, Eric Noulard wrote: > 2011/12/9 vivek goel : >> I want to generate two package type . >> >> So I am using following syntax in my CMakeLists.txt >> S

[CMake] Changing Package Top level directory name

2011-12-12 Thread vivek goel
hi, how can I change the name of top level directory of cpack. Without changing CPACK_PACKAGE_FILE_NAME ? I want package name to be in format of cmake-2.5.0-Linux-i686 only. But I want to change the root (top directory ) name inside package. regards Vivek Goel -- Powered by www.kitware.com

[CMake] Checking Cpack generator type in script code of (INSTALL SCRIPT

2011-12-13 Thread vivek goel
hi, I am using (INSTALL SCRIPT foo) inside foo how can I check that generator type is RPM or not ? I tried with this code if(CPACK_GENERATOR MATCHES "RPM") EXECUTE_PROCESS(COMMAND echo ${CMAKE_INSTALL_PREFIX}) endif(CPACK_GENERATOR MATCHES "RPM") But this code doesn'

[CMake] __FILE__ relative path

2011-12-27 Thread vivek goel
How can I make cmake to compile source with relative path ? So that __FILE__ belongs to relative path of the file or there is another way I can replace __FILE__ with some other variable ? -- regards Vivek Goel -- Powered by www.kitware.com Visit other Kitware open-source projects at http

Re: [CMake] __FILE__ relative path

2011-12-27 Thread vivek goel
Is there any way to define custom macro as given in following answer http://stackoverflow.com/questions/237542/learning-the-source-codes-filename-at-compile-time with cmake regards Vivek Goel On Tue, Dec 27, 2011 at 11:02 PM, Rolf Eike Beer wrote: > Am Dienstag, 27. Dezember 2011, 09:18

[CMake] CMAKE install command post process the file

2011-12-28 Thread vivek goel
I am installing static file using cmake INSTALL command I want to post process the output file using cmake example Static files are having string like v={{VERSION}} I want to replace {{VERSION}} in the output files. Is it possible with cmake ? using utility like sed. -- regards Vivek Goel

[CMake] Problem with set_source_files_properties

2012-01-05 Thread vivek goel
I am using code where f contains the file name set(MY_PATH "-D__RELATIVE_PATH__=\\\"ab\\\"") set_source_files_properties(${f} PROPERTIES COMPILE_FLAGS ${MY_PATH}) I am not able to see -D__RELATIVE_PATH__ inside compilation flags. What is wrong ? -- regards Vivek

Re: [CMake] Problem with set_source_files_properties

2012-01-05 Thread vivek goel
Using COMPILE_DEFINITIONS is also not working. set(MY_PATH "__RELATIVE_PATH__=ab") set_source_files_properties(${f} PROPERTIES COMPILE_DEFINITIONS ${MY_PATH}) On 1/5/12, Mateusz Loskot wrote: > On 5 January 2012 12:31, vivek goel wrote: >> I am using code >> where

[CMake] Cmake coloring gcc output on errror

2012-01-10 Thread vivek goel
Is there a way to color warning/error of gcc with cmake ? regards Vivek Goel -- 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

Re: [CMake] Cmake coloring gcc output on errror

2012-01-13 Thread vivek goel
Thanks. regards Vivek Goel On Wed, Jan 11, 2012 at 6:26 PM, Michael Wild wrote: > On 01/11/2012 01:44 PM, Michael Hertling wrote: > > On 01/10/2012 07:17 PM, vivek goel wrote: > >> Is there a way to color warning/error of gcc with cmake ? > > > > AFAIK, no, bu

[CMake] CMake setting file attribute to the binary file on linux

2012-02-28 Thread vivek goel
I want to set extra file attribute to cmake binary file Like user.comment . Is there any module in cmake linux version which I can to set these types of properties ? regards Vivek Goel -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource

[CMake] Custom install target to install only files

2012-05-24 Thread vivek goel
for binary files? regards Vivek Goel -- 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

[CMake] Confusion about CMAKE_INSTALL_PREFIX

2012-05-25 Thread vivek goel
everytime configure is running as ./configure --prefix=/usr/local Is it a bug ? or Should I use DESTDIR variable instead of using CMAKE_INSTALL_PREFIX or Should I set -DCMAKE_INSTALL_PREFIX whenever I am changing DESTDIR. What is the recommended way ? regards Vivek Goel -- Powered by www.kitware.com V

[CMake] Cmake custom install target for a particular binary

2012-05-30 Thread vivek goel
hi, I am having 10 binary inside my project. If I run make install DESTDIR=<> it builds all source code and install everything. Is there a way I can install a particular binary ? Like having custom target like make install.bin1 DESTDIR=<> which will install only particular binary ? r

[CMake] find_library setting search path order

2012-06-06 Thread vivek goel
But every-time it is searching at/usr/lib/x86_64-linux-gnu/libpcre.so. How can I change order for library search path ? regards Vivek Goel -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on

Re: [CMake] find_library setting search path order

2012-06-06 Thread vivek goel
sorry for typo it was path. but still it doesn't work find_library(PCRE_LIBRARY pcre HINTS ${CMAKE_SOURCE_DIR}/lib/linux/gcc/${BIT}/lib PATHS ${CMAKE_SOURCE_DIR}/lib/linux/gcc/${BIT}/lib ) again output is /usr/lib/x86_64-linux-gnu/libpcre.so regards Vivek Goel On Wed, Jun 6, 2012 at 10:

Re: [CMake] find_library setting search path order

2012-06-06 Thread vivek goel
regards Vivek Goel On Wed, Jun 6, 2012 at 11:05 PM, vivek goel wrote: > sorry for typo it was path. > path=paths :) > but still it doesn't work > find_library(PCRE_LIBRARY pcre > HINTS ${CMAKE_SOURCE_DIR}/lib/linux/gcc/${BIT}/lib > PATHS ${CMAKE_SOURCE_DIR}/l

Re: [CMake] Removing message : Dependee is newer than depender

2012-06-06 Thread vivek goel
I am using sed to remove that message sed -e '/is newer than depender/D' regards Vivek Goel On Mon, Jun 4, 2012 at 9:53 PM, vivek goel wrote: > How to remove warning message > Dependee is newer than depender > When I am not running make in verbose mode. > I want to

Re: [CMake] find_library setting search path order

2012-06-06 Thread vivek goel
t; again without the NO_DEFAULT_PATH. > > > HTH, > David > > > On Wed, Jun 6, 2012 at 2:25 PM, vivek goel wrote: > >> on some system library will be there at given path and on some system it >> will not. >> >> The reason for which I want use find_li

[CMake] CMAKE installing files instead of symbolic link

2012-06-26 Thread vivek goel
UDE ) But it is not working. It is installing broken symbolic link. It is installing symbolic link like libicutu.so -> libicutu.so.48.1 Where symbolic link is broken. Is there a way to copy original file instead as symbolic link using cmake? regards Vivek Goel -- Powered by www.kitware.com V

Re: [CMake] CMAKE installing files instead of symbolic link

2012-06-26 Thread vivek goel
cmake version 2.8.8 and icu is custom compiled. regards Vivek Goel On Tue, Jun 26, 2012 at 5:49 PM, Eric Noulard wrote: > 2012/6/26 vivek goel : > > hi, > > I am building my custom library inside > > lib/linux/gcc/${BIT}/lib/ > > > > Currently I am using foll

Re: [CMake] CMAKE installing files instead of symbolic link

2012-06-26 Thread vivek goel
I think I have to explained the thread correctly. What is problem is that currently it is copying a symbolic link libicutu.so but I want it to follow symbolic link and instead of copying symbolic link it should copy it target file as symbolic link file name. regards Vivek Goel On Tue, Jun 26

[CMake] Using $ORIGIN as rpath for third party configure script

2012-06-27 Thread vivek goel
) Make file generated by third path configure look likes * " -Wl,-rpath,':RIGIN/../lib' -lstdc++"* I think I need to escape ${CMAKE_INSTALL_RPATH} correctly. What is the correct way to escape ${CMAKE_INSTALL_RPATH} for other third party configure? regards Vivek Go

[CMake] How to force cmake to always give color o/p

2012-06-27 Thread vivek goel
CMake currently checks if it is writing to a TTY, and if not it switch off colors. Problem is that I am piping make o/p to sed command. One way to solve this problem is I can use unbuffer command. Is there any other solution to always force color output ? regards Vivek Goel -- Powered by

[CMake] How to automate building of third party library using cmake

2012-07-30 Thread Vivek Goel
solve this problem. I don't want to rebuild the library if I am not changing them and want to use them while switching to different branches without building them. regards Vivek Goel -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitwar

[CMake] Automating package installion if not there

2012-07-30 Thread Vivek Goel
message to user please install the package and abort like: Seems like you have not installed gcc, g++, yacc required to build this project. Please run following command to fix this problem: yum install gcc g++ yacc -y regards Vivek Goel -- Powered by www.kitware.com Visit other Kitware open

[CMake] How to customize make output generate by cmake

2012-07-31 Thread Vivek Goel
way to do this ? regards Vivek Goel -- 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

[CMake] Problem with DESTDIR in with ExternalProject

2012-09-10 Thread Vivek Goel
variable with my cmake configuration and ExternalProject_Add ? regards Vivek Goel -- 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

Re: [CMake] Problem with DESTDIR in with ExternalProject

2012-09-12 Thread Vivek Goel
OK, thanks. regards Vivek Goel On Tue, Sep 11, 2012 at 5:43 PM, David Cole wrote: > The most reasonable way to achieve this goal would be to write scripts > that replace the configure/build/install steps of the projects that > you want to isolate with DESTDIR. > > Then, in

Re: [CMake] How to force cmake to always give color o/p

2012-09-12 Thread Vivek Goel
Currently I am using unbuffer command to get this thing done. http://linux.die.net/man/1/unbuffer regards Vivek Goel On Wed, Jun 27, 2012 at 10:45 PM, vivek goel wrote: > CMake currently checks if it is writing to a TTY, and if not it switch > off colors. > Problem is that I am pipi

[CMake] Automatic building app version if any one of the dependency is changed.

2012-10-17 Thread Vivek Goel
dependency of app executable is changed ? regards Vivek Goel -- 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

Re: [CMake] Automatic building app version if any one of the dependency is changed.

2012-10-17 Thread Vivek Goel
every application is depending on this version.h and everything got rebuild. I want to change this logic so application will have their own version and version.h file should be generated only if any other dependency of application is changed. Now as regards Vivek Goel On Thu, Oct 18, 2012 at

Re: [CMake] Using cmake install target to add into svn directory

2012-12-08 Thread Vivek Goel
Do I need to change all install rull using this syntax or can I use an override rule which can do It for all components ? regards Vivek Goel On Sun, Dec 9, 2012 at 12:59 AM, Martin Koller wrote: > On Friday 07 December 2012 07:37:38 Vivek Goel wrote: > > Hi, > > I am usin

Re: [CMake] Using cmake install target to add into svn directory

2012-12-09 Thread Vivek Goel
Thanks I modified cmake unistall example for my purpose: http://www.cmake.org/Wiki/CMake_FAQ#Can_I_do_.22make_uninstall.22_with_CMake.3F regards Vivek Goel On Sun, Dec 9, 2012 at 2:21 AM, Martin Koller wrote: > On Saturday 08 December 2012 20:56:49 Vivek Goel wrote: > > Do I need

[CMake] Duplicate file showing in cmake generated eclipse project

2013-07-22 Thread Vivek Goel
these issue ? regards Vivek Goel -- 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