Re: [CMake] cpack changed binary file permission in 2.8.10

2013-04-19 Thread hce
Eric Noulard wrote > 2013/4/19 hce < > jupiter.hce@ > >: >> Hi, >> >> I have another wired situation when I run "cpack -G RPM", the cpack >> changed >> a binary file permission: >> >> Original file in the build directory: >

[CMake] cpack changed binary file permission in 2.8.10

2013-04-19 Thread hce
Hi, I have another wired situation when I run "cpack -G RPM", the cpack changed a binary file permission: Original file in the build directory: $ ls -l Robotic/Robotic-prefix/src/robotic/bin/CreateSystemObject -rwxr-xr-x. 1 root root 15307640 Apr 19 12:01 Robotic/Robotic-prefix/src/robotic/bin/

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

2013-04-17 Thread hce
Eric Noulard wrote > 2013/4/17 jupiter < > jupiter.hce@ > >: > > Could you check the size of the executable which gets into the RPM > it should be located in: > > /_CPack_Packages/ > > /RPM/ > > / > > When CPackRPM runs you get a message like: > > CPackRPM: Will use GENERATED spec file:

Re: [CMake] Is it a bug that cmake / cpack could not handle directory name with @?

2013-04-06 Thread hce
Eric Noulard wrote > 2013/4/5 hce < > jupiter.hce@ > > > >> Eric Noulard wrote > > I did open a bug report for that. > > I did try a patch. > Would you try it please? > http://public.kitware.com/Bug/view.php?id=14063 > > And comment on th

Re: [CMake] Is it a bug that cmake / cpack could not handle directory name with @?

2013-04-05 Thread hce
Eric Noulard wrote > 2013/4/5 hce < > jupiter.hce@ > > > > Yes for CPack RPM I can see why that is happening. > The spec file generated by CPackRPM is >1) generated >2) configured (with @ONLY) > > This is handy for many reason so @ in pathname sh

[CMake] Is it a bug that cmake / cpack could not handle directory name with @?

2013-04-04 Thread hce
Hi, I have a binary directory contains subdirectories name with "@": graph3d/@graph3d/@colorbar/colorbar.m scribe/@scribe/@colorbar/colorbar.m When I run cpack -G RPM, it removed @ and put following string name in the spec: graph3d/graph3d/colorbar/colorbar.m scribe/scribe/colorbar/colorbar.m

[CMake] cmake build matlab compiler runtime MCR

2013-04-04 Thread hce
Hi, Has anyone built MATLAB Compiler Runtime (MCR) using cmake and cpack for RPM package? I have built MCR using Cmake External Projects and installed the binary in an installation directory, but when I run cpack -G RPM, it got errors of missing many files in install directory. Why cpack created s

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

2013-03-11 Thread hce
Andreas Stahl wrote > Hello Jupiter, > > can you post the error message here? I wasn't aware that install(FILES > ...) did any checking besides comparing the dates and overwriting if the > file to be installed is newer. > Also, you misunderstood what Petr meant. You need to escape the quotes in >

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

2013-03-11 Thread hce
not sure if 'not exists' can be given in lowercase. > > However, I'd strongly suggest using install(SCRIPT ...) instead of > install(CODE ...), precisely because of the escaping issues. > > Petr > > On Mon, Mar 11, 2013 at 6:14 AM, hce < > jupiter.hce@ &g

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

2013-03-10 Thread hce
Hi, I have following statement to install a file from source directory to destination. It got a conflict error if the destination has already had the file. install(FILES "${source}/myfile.txt" DESTINATION ${destination}) Is there anyway to set either overwrite, or no overwrite if the file exist

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

2013-03-05 Thread hce
Eric Noulard wrote >> Has the issue been resolved in 2.8.10? > > Nope. > And I have very little hope for 2.8.11 either since I have not free > time windows visibility > to work on that for myself now... > > Sorry. > -- > Erk > Le gouvernement représentatif n'est pas la démocratie -- > http://ww

[CMake] When will 2.8.11 be released?

2013-03-04 Thread hce
Hi, When will CMake 2.8.11 be released (Scheduled For Release 2013-01-30)? The following bug Target Version is 2.8.11, is it still correct? http://public.kitware.com/Bug/view.php?id=12997 Thank you. Kind regards. Jupiter -- View this message in context: http://cmake.3232098.n2.nabble.com/

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

2013-03-02 Thread hce
just lack time to go through > it. > The work is not that difficult but it has many potential impact so that > we shall take time to do it carefully. Has the issue been resolved in 2.8.10? Thank you. Kind regards. Jupiter Eric Noulard wrote > 2012/6/27 hce < > jupiter.hce

Re: [CMake] How to make ccmake automatic run to select all modules in a script?

2013-03-02 Thread hce
Thanks Jean-Christophe. I did read the document before, but still could not figure out how to switch all modules from default OFF to ON in ccmake command line, and still could not figure out how to run ccmake without interactive button push c-> configure, q-> quit. I looked at ccmake --help, I gue

[CMake] How to make ccmake automatic run to select all modules in a script?

2013-03-02 Thread hce
Hi, I am writing a Linux bash script to run cmake, ccmake and cpack automatically. The problem for ccmake is that is an interactive interface. Is it possible to specify ccmake in command line to select all modules and to run in a script without push buttons? Please give an example how to run ccma

[CMake] License agreement in package installation

2012-09-17 Thread 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 from cmake 2.8.8 document there is CPACK_RESOURCE_FILE_LICENSE may produce such process, am I rig

[CMake] Failed to create project in my.cdash.org

2012-09-04 Thread hce
Hi, I was able to run ctest -D Experimental and to submit test report from VTK build process. Now I am setting up my own test project in http://my.cdash.org, and hope to run ctest on my own source code and to submit to my project in my.cdash.org. I guess there are two ways to display results on

[CMake] RPM package %config noreplace causes conflict

2012-08-24 Thread 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 exactly the same in A.rpm and B.rpm. Now I've got an file conflict error when A.rpm was installed, B.rpm failed the installat

[CMake] How to define file access mode in file write function?

2012-07-25 Thread hce
Hi, How do you control the file access permission when using file(WRITE filename content)? The cmake 2.8.8 manual does not seem allow to specify access permission in file(WRITE ..). Thank you. J -- View this message in context: http://cmake.3232098.n2.nabble.com/How-to-define-file-access-mod

[CMake] baffled by function string value set up

2012-07-20 Thread hce
Hi, I am completely baffled by following results to get string values from a function, please enlighten me what was wrong in following simplified function? function(GetParameterDebug oa ob oc od) set(a "sa") set(b "sb") set(c "sc") set(d "sd") set(${oa} ${a} PARENT_SCOPE)

Re: [CMake] Can multiple make commands be set in BUILD_COMMAND for ExternalProject_Add?

2012-07-04 Thread hce
Thanks David and Michael. Cheers. Jupiter -- View this message in context: http://cmake.3232098.n2.nabble.com/Can-multiple-make-commands-be-set-in-BUILD-COMMAND-for-ExternalProject-Add-tp7580744p7580763.html Sent from the CMake mailing list archive at Nabble.com. -- Powered by www.kitware.com

Re: [CMake] Failed to submit ctest report to public.kitware.com CDash server

2012-07-04 Thread hce
Rolf Eike Beer wrote > > Of course it does, because the drop site is not set. And CTest should > really > be tought to do something sensible then and not trying to contact the > universe > and then complain it doesn't listen. > So both drop site http://public.kitware.com/cgi-bin/HTTPUploadDar

[CMake] Can multiple make commands be set in BUILD_COMMAND for ExternalProject_Add?

2012-07-03 Thread hce
Hi, In ExternalProject_Add, "BUILD_COMMAND make" works fine, but I need to add multiple make commands. In Linux command line I can type "make && make extra", but how can I set following BUILD_COMMAND for multiple make commands, it just not working? BUILD_COMMAND make && make extra INSTALL_COMMAND

Re: [CMake] Failed to submit ctest report to public.kitware.com CDash server

2012-07-03 Thread hce
Thanks David. The wiki page I referenced is from http://cmake.org/Wiki/CMake/Testing_With_CTest. But I am not running ctest at VTK package, rather try to test cdash from my own source package build, I added the setup from your link to the CMakeLists.txt, but still failed at the same problem of cou

[CMake] Failed to submit ctest report to public.kitware.com CDash server

2012-07-03 Thread hce
Hi, I am running 2.8.8 on CentOS 6, and I followed VTK wiki instruction to set following up and to run "ctest -D Experimental", but it failed to submit the report. The error was that my hostname was not reachable. It is my PC, the hostname is set to a proper domain name. But I thought it got right

Re: [CMake] Why execute_process failed escape sequence \/?

2012-07-03 Thread hce
Thanks Eike. Cheers. -- View this message in context: http://cmake.3232098.n2.nabble.com/Why-execute-process-failed-escape-sequence-tp7580706p7580732.html Sent from the CMake mailing list archive at Nabble.com. -- Powered by www.kitware.com Visit other Kitware open-source projects at http://w

[CMake] Why execute_process failed escape sequence \/?

2012-07-01 Thread hce
Hi, I can most of shell commands in execute_process(), but cmake failed at following errors when I added "sed 's/^.\///g'" to execute_process(): Syntax error in cmake code, when parsing string 's/^.\///g', Invalid escape sequence \/, Call Stack ... But without the escape sequence \/, the shell c

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

2012-06-28 Thread 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 which all have component specified. Could it be the bug? Thank you. Jupiter -- View this messa

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

2012-06-27 Thread hce
Hi, I've read some discussions posted ten months ago on http://cmake.3232098.n2.nabble.com/Component-Package-Name-td6976896.html where Eric Noulard pointed out that we could not control component package name for the reason of unique package name. I am currently running on 2.8.8 and generated very

Re: [CMake] find_path() to search include path failed

2012-06-21 Thread hce
Andreas Pakulat-2 wrote > > You can find extensive explanation where find_path works on the different > platforms in the CMake documentation: > http://cmake.org/cmake/help/v2.8.8/cmake.html#command:find_path > Thanks Andreas, but I am not looking for how to use find_path command. What I really

[CMake] What is the current situation for adding %config (no replace)?

2012-06-21 Thread hce
Hi, There were some discussions to fix %config at http://public.kitware.com/Bug/view.php?id=10294. But I tried to use CPACK_RPM_SPEC_IGNORE_FILES in 2.8.8, it does not seem work. What is current situation to use %config? Even if the RPM variable works for %config, how can the no replace files work

[CMake] find_path() to search include path failed

2012-06-21 Thread hce
Hi, I am running 2.8.8 on Linux. I have a library already been set up in environment, I can see it in both LD_LIBRARY_PATH and $PATH, but when I was compiling another source code which calling find_path() to check the library package include path, it failed. In general, how the cmake find_path() t

[CMake] search include path from find_path failure

2012-06-21 Thread hce
Hi, I am running 2.8.8 on Linux. I have a library already been set up in environment, I can see it in both LD_LIBRARY_PATH and $PATH, but when I was compiling another source code which calling find_path() to check the library package include path, it failed. In general, how the cmake find_path() t

[CMake] Does install command have no replace (no overwrite) arguments?

2012-06-20 Thread hce
Hi, I am using install command to package configuration files from source to destination, but I don't want to overwrite the configuration files if the files exist in destination. Are there any arguments in install(FILES ...) command to specify NO REPLACE, NO OVERWRITE options to destination instal

[CMake] How to remove CMAKE_INSTALL_PREFIX from cache non-advanced mode?

2012-06-16 Thread hce
Hi, I am using ccmake to configurate cache. The CMAKE_INSTALL_PREFIX is always visible in the non-advinced mode and I don't want it. How can I remove the CMAKE_INSTALL_PREFIX from the ccmake non-advinced mode? Thank you. -- View this message in context: http://cmake.3232098.n2.nabble.com/How-to

[CMake] Select subproject packages

2012-06-01 Thread jupiter . hce
oject? Thank you. Kind regards, hce -- 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/unsubs

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