[CMake] The C compiler "/usr/bin/cc" is not able to compile a simple test program.

2017-07-29 Thread jupiter
Hi, How can I set up the cmake not to check /usr/bin/cc but to check $CC (which link to gcc without hard corded path in the environment)? Thank you. Regards -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware of

Re: [CMake] The C compiler "/usr/bin/cc" is not able to compile a simple test program.

2017-07-29 Thread jupiter
I thought if I add -DCMAKE_CC_COMPILER=gcc that error should go, no, it still compile with the specific default cc: /usr/bin/cc How could I fix it? Thank you. On Sun, Jul 30, 2017 at 11:51 AM, jupiter wrote: > Hi, > > How can I set up the cmake not to check /usr/bin/cc but to

Re: [CMake] The C compiler "/usr/bin/cc" is not able to compile a simple test program.

2017-07-31 Thread jupiter
Thanks Micha and Nils. Cheers. On Sun, Jul 30, 2017 at 6:54 PM, Micha Hergarden wrote: > On 30-07-17 04:36, jupiter wrote: > > I thought if I add -DCMAKE_CC_COMPILER=gcc that error should go, no, it > still compile with the specific default cc: > > /usr/bin/cc >

[CMake] Failed to build C++ source with CMakeLists.txt

2017-08-05 Thread jupiter
Hi, I have built many open sources with gcc 4.9.1 on CentOS 6.8 platform, but I could not build this one and I have no idea what was wrong with this CMakeLists.txt, I have attached both CMakeLists.txt and CMakeError.log, appreciate any clues what was missing. Thank you. $ ls /usr/local/cppcms/1.

[CMake] Create a binary package

2012-05-30 Thread jupiter
Hi, Sorry for an FAQ, I am new to cpack. I am going to use cpack to generate an rpm package to contain all binary files, bin, lib etc under CMAKE_BINARY_DIR/myApplicationBinaryDir. Which cpack variable I can use to define the package content to include the binary directory? Thank you. Kind regar

Re: [CMake] Can we control component package name in 2.8.8?

2012-06-27 Thread jupiter
Thanks Eric and Micha for the clarification. Jupiter On Thu, Jun 28, 2012 at 12:54 AM, Eric Noulard wrote: > 2012/6/27 hce : > > Hi, > > > > I've read some discussions posted ten months ago on > > http://cmake.3232098.n2.nabble.com/Component-Package-Name-td697

Re: [CMake] Can we control component package name in 2.8.8?

2012-06-29 Thread jupiter
On Thu, Jun 28, 2012 at 9:05 PM, Eric Noulard wrote: > 2012/6/28 hce : > > > > m.hergarden wrote > >> > >> The unspecified may come from an Install statement that does not have a > >> component specified. > >> > >> Micha > >> > > > > I actually double checked, there are only two install statements

[CMake] How to run bash shell script during rpm installation?

2012-07-09 Thread jupiter
it? I am not clear if the install(SCRIPT ...) can be used, I guess the cmake script can be invoked during installation to call execute_process() for bash shell commands, but where I can copy my configuration source files from? Thank you. Kind regards, Jupiter -- Powered by www.kitware.com Visit

Re: [CMake] How to run bash shell script during rpm installation?

2012-07-11 Thread jupiter
Thank you so much Eric, yes I'll use rpm post/pre install script for rpm package and put the generic solution worry aside for the time being. Cheers. Jupiter On 7/10/12, Eric Noulard wrote: > 2012/7/10 jupiter : >> Hi, >> >> I need to run shell script to do foll

Re: [CMake] RPM package %config noreplace causes conflict

2012-08-25 Thread jupiter
Thanks Eric. Please see following embedded comments. On 8/24/12, Eric Noulard wrote: > 2012/8/24 hce : >> Hi, >> >> i use install(FILE ..) to install a configuration file config.txt by both >> RPM packages A.rpm and B.rpm, due to the name and version in config.txt, >> the >> config.txt is not exa

Re: [CMake] License agreement in package installation

2012-09-17 Thread jupiter
Thanks Eric and Andreas. On 9/18/12, Eric Noulard wrote: > 2012/9/17 hce : >> Hi, >> >> I need to add an interfactive license agreement to an RPM package when it >> is >> installed in Linux terminal (not GUI), it should display the license and >> asked whether the user agree or not. I noticed fro

Re: [CMake] How to set Overwrite or no over write in install(FILES ....)?

2013-03-12 Thread jupiter
Thanks Eric. That clarifies lots of things. Kind regards, Jupiter On 3/11/13, Eric Noulard wrote: > 2013/3/11 hce : >> Andreas Stahl wrote >>> Hello Jupiter, >>> >>> can you post the error message here? I wasn't aware that install(FILES >>>

[CMake] Cpack generated RPM and changed binary file size in 2.8.10

2013-04-17 Thread jupiter
Hi, I have a wired situation, I have a binary file (ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.18, stripped) in bin directory, I then I run "cpack -G RPM" to generate an RPM package. After install the RPM package in another machine

Re: [CMake] Create a binary package

2012-06-01 Thread jupiter . hce
Thanks Eric, that helps. Kind regards. hce On 2012-05-31 09:20+0200, Eric Noulard wrote: 2012/5/31 jupiter : Hi, Sorry for an FAQ, I am new to cpack. I am going to use cpack to generate an rpm package to contain all binary files, bin, lib etc under CMAKE_BINARY_DIR/myApplicationBinaryDir

[CMake] Select subproject packages

2012-06-01 Thread jupiter . hce
Hi, I have a top root project and many subprojects under it. I am using cpack to package some subprojects, but I don't want to package the root project. When I run the cpack on root build directory, it also tried to package the root project. Is there any way to disable package the root project?