Re: [CMake] Cmake/Cpack creates a corrupt .rpm

2019-05-31 Thread Gonzalo Garramuño
El 30/5/19 a las 22:16, Gonzalo Garramuño escribió: El 30/5/19 a las 21:36, Zan Lynx escribió: RPM files are not cpio. They contain a cpio. Use rpm2cpio as a filter. Thanks for that.  Using: rpm2cpio mrViewer-v5.0.7-Linux-64.rpm | cpio -idmv I can extract all the contents of the archive

Re: [CMake] CMake | CMake/CPack do not print out messages as they progress (#19343)

2019-06-07 Thread Gonzalo Garramuño
I found out the problem was an old ninja version. I am closing the bug report. El 06/06/19 a las 12:27, Brad King escribió: GitLab I tried CMake 3.14.5 and 3.15.0-rc1 on your example. They both behave the same. Running |ninja bundle| shows incremental output from cpack. Alternatively

Re: [CMake] ADD_CUSTOM_TARGET USES_TERMINAL not printing out stuff

2019-06-05 Thread Gonzalo Garramuño
El 05/06/19 a las 11:51, Brad King escribió: On 6/5/19 8:27 AM, Gonzalo Garramuño wrote: This used to print out all that cpack was doing while it was doing it. Now with v3.15.0-rc1 it just sits there and outputs all the text at the end when it finishes, which sucks as it looks like it has

[CMake] Cmake/Cpack creates a corrupt .rpm

2019-05-30 Thread Gonzalo Garramuño
ge.net/projects/mrviewer/files/v5.0.6/mrViewer-v5.0.6-Linux-64.rpm/download If I use: rpm -ql mrViewer-v5.0.6-Linux-64.rpm all files are there.  However, when installing, the installer fails on reaching the lib directory of the rpm. CMake/CPack used to build the rpm just fine some (long) ve

Re: [CMake] Cmake/Cpack creates a corrupt .rpm

2019-05-30 Thread Gonzalo Garramuño
El 30/5/19 a las 12:51, Gonzalo Garramuño escribió: I have a CMakeLists.txt (extract) with the following commands: SET(CPACK_GENERATOR DEB RPM TGZ ) # SET the installation directory. SET(CPACK_SET_DESTDIR true) # Needed SET(CPACK_INSTALL_PREFIX /usr/local/${mrViewerShortName}) SET

Re: [CMake] How do I get ExternalProject_Add to install libs/programs with sudo access

2019-06-23 Thread Gonzalo Garramuño
El 23/6/19 a las 19:21, Ruben Di Battista escribió: If I’m not mistaken, you should be able to change the install prefix using the CMAKE_ARGS option in the Configure step.     CMAKE_ARGS -DCMAKE_INSTALL_PREFIX= -DCMAKE_CXX_FLAGS='-g' Thanks, Ruben.  I am familiar with this.  I was hoping to

[CMake] How do I get ExternalProject_Add to install libs/programs with sudo access

2019-06-23 Thread Gonzalo Garramuño
I am in the process of adding ExternalProject_Add commands to my program and I find them to work okay, except when they get to the install step.  Once they reach the install, they fail as they don't have super user access to install in /usr/local/, which is where I want them. How do you work

Re: [CMake] toolchain file - cross-compiling windows-amd64->windows-x86

2019-09-19 Thread Gonzalo Garramuño
.bat -rxvt Then I call cmake and ninja with a bash script (both are in the bash PATH).  Find it attached. -- Gonzalo Garramuño #!/bin/bash # # Determine CPU architecture # KERNEL=`uname -s` if [[ $KERNEL == CYGWIN* ]]; then KERNEL=Windows RELEASE=(`cmd /c 'ver'`) RELEASE=${RELEAS

<    1   2