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
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
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
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'
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
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
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
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
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
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
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
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
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
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
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
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
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:
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
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
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
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
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
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
)
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 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
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
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
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
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
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
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
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
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
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
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
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
36 matches
Mail list logo