Re: [CMake] cmake on MinGW64; which generator

2019-06-23 Thread Benjamin Eikel
Dear Christopher, Am 23. Juni 2019 23:31:01 MESZ schrieb Christopher Webster : >On 6/23/19 9:22 AM, Alan W. Irwin wrote: >> >> There are a lot of different platforms that use the MinGW-w64 >compiler >> so you should probably >> describe the platform where you are attempting to use that compiler

[Cmake-commits] CMake branch, master, updated. v3.15.0-rc2-115-ga639464

2019-06-23 Thread Kitware Robot
t a/Source/CMakeVersion.cmake b/Source/CMakeVersion.cmake index 01a0ad1..78f236f 100644 --- a/Source/CMakeVersion.cmake +++ b/Source/CMakeVersion.cmake @@ -1,5 +1,5 @@ # CMake version number components. set(CMake_VERSION_MAJOR 3) set(CMake_VERSION_MINOR 15) -set(CMake_VERSION_PATCH 20190623) +set(CMake_VER

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

Re: [CMake] install multiple versions of CMake on your system

2019-06-23 Thread Michael Ellery
If you are using the shell archive from cmake.org, it supports a —prefix and —exclude-subdir option, e.g.: cd /tmp CM_INSTALLER=cmake-3.14.0-Linux-x86_64.sh CM_VER_DIR=/opt/local/cmake/3.14 wget https://cmake.org/files/v3.14/$CM_INSTALLER chmod a+x $CM_INSTALLER mkdir -p $CM_VER_DIR

[CMake] install multiple versions of CMake on your system

2019-06-23 Thread hex
hello, I'd like to install CMake under /usr/local/cmake/3.15/bin/ or similar. Is it possible to add the version number to a build option, like -DCMAKE_INSTALL_PREFIX or do I need to modify CMake sources? thank you -- Powered by www.kitware.com Please keep messages on-topic and check the

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

2019-06-23 Thread Ruben Di Battista
If I’m not mistaken, you should be able to change the install prefix using the CMAKE_ARGS option in the Configure step. This is my ExternalProject_Add I use to download third party stuff. Things enclosed by @ are replaced at configure time by correct names/URLs.  ``` ExternalProject_Add(    

Re: [CMake] cmake on MinGW64; which generator

2019-06-23 Thread Christopher Webster
On 6/23/19 9:22 AM, Alan W. Irwin wrote: > > There are a lot of different platforms that use the MinGW-w64 compiler > so you should probably > describe the platform where you are attempting to use that compiler in > more detail.  For example, > it sounds like you are simply taking a normal Window

[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] cmake on MinGW64; which generator

2019-06-23 Thread Alan W. Irwin
On 2019-06-23 07:49-0600 Christopher Webster wrote: Greetings,   I am trying to figure out which generator to use on MinGW64 on Windows10, the 2-3 I have tried fail. cmake version is 3.14.5 If I try "Unix Makefiles" I get: $ cmake -S coin -B coin_build -G "Unix Makefiles"

Re: [CMake] cmake on MinGW64; which generator

2019-06-23 Thread Cristian Adam
Hi, You are most probably using MSys2, which means that you are using CMake from MSys2, and they patch CMake for their platform. This also means that CMake upstream doesn't support it. Here are the differences between upstream CMake 3.14.3 and MSys2 CMake

[CMake] cmake on MinGW64; which generator

2019-06-23 Thread Christopher Webster
Greetings,   I am trying to figure out which generator to use on MinGW64 on Windows10, the 2-3 I have tried fail. cmake version is 3.14.5 If I try "Unix Makefiles" I get: $ cmake -S coin -B coin_build -G "Unix Makefiles" -DCMAKE_INSTALL_PREFIX=C:\Tools\Packages\Coin3D -- The C compiler

Re: [CMake] Write CMakeLists.txt for this C++ program

2019-06-23 Thread dexter810
I built this C++ executable using CMake 3.10.2 in Ubuntu 18.04 and it was built successfully using the first approach. I'm now trying to build it using the same CMakeLists.txt and folder structure in Android Studio which is also using CMake 3.10.2, this time a library not an executable, that being

[CMake] cached variable for multiple files. Use FILEPATH ?

2019-06-23 Thread Kris Thielemans
Hi I need to store multiple libraries in one cached variable. Do I still give it type FILEPATH? Thanks Kris PS: In case you want to know why. We use a superbuild and need to pass the location of the external project's libraries to the dependent project. We currently do that via a