Re: [Mingw-w64-public] cmake not creating directories on mingw64, works fine on linux.

2020-01-24 Thread David Mathog
On 2020-01-23 16:17, David Grayson wrote: My CMake file-installation needs are simpler than yours and I haven't figured out how to make it truly portable but I have something that works. I tell MSYS2 users to build/install the software by running these commands: mkdir build cd build MSYS2_ARG

Re: [Mingw-w64-public] cmake not creating directories on mingw64, works fine on linux.

2020-01-23 Thread Vincent Torri
On Fri, Jan 24, 2020 at 7:31 AM Ruben Van Boxem In my eyes, your CMakeLists.txt shouldn't contain a hardcoded Unix path > such as /tmp. Instead it should e.g. check if it exists and accept a > parameter from the command line to overwrite this using an option. In this > case, it is much more conven

Re: [Mingw-w64-public] cmake not creating directories on mingw64, works fine on linux.

2020-01-23 Thread Ruben Van Boxem
Op vr 24 jan. 2020 00:30 schreef David Mathog : > On 2020-01-23 15:08, David Grayson wrote: > > Since CMake in MSYS2 is a native Windows program, if you ask it to make > > /tmp, I expect it will make C:/tmp. Did that happen? > > Good call, that is exactly what happened! > > This is a problem (esp

Re: [Mingw-w64-public] cmake not creating directories on mingw64, works fine on linux.

2020-01-23 Thread David Grayson
My CMake file-installation needs are simpler than yours and I haven't figured out how to make it truly portable but I have something that works. I tell MSYS2 users to build/install the software by running these commands: mkdir build cd build MSYS2_ARG_CONV_EXCL=- cmake .. -G"MSYS Makefiles" -DCMAK

Re: [Mingw-w64-public] cmake not creating directories on mingw64, works fine on linux.

2020-01-23 Thread David Mathog
On 2020-01-23 15:08, David Grayson wrote: Since CMake in MSYS2 is a native Windows program, if you ask it to make /tmp, I expect it will make C:/tmp. Did that happen? Good call, that is exactly what happened! This is a problem (especially for a cross platform build environment) because the p

Re: [Mingw-w64-public] cmake not creating directories on mingw64, works fine on linux.

2020-01-23 Thread David Grayson
Since CMake in MSYS2 is a native Windows program, if you ask it to make /tmp, I expect it will make C:/tmp. Did that happen? --David On Thu, Jan 23, 2020 at 2:55 PM David Mathog wrote: > On 2020-01-23 14:15, David Mathog wrote: > > The CMakeLists.txt file after my signature works correctly in

Re: [Mingw-w64-public] cmake not creating directories on mingw64, works fine on linux.

2020-01-23 Thread David Mathog
On 2020-01-23 14:15, David Mathog wrote: The CMakeLists.txt file after my signature works correctly in linux with: mkdir build cd build cmake .. make but in mingw64 this: mkdir build cd build cmake -G "MSYS Makefiles" .. make fails when it tries to link the first executable (which happens to

[Mingw-w64-public] cmake not creating directories on mingw64, works fine on linux.

2020-01-23 Thread David Mathog
The CMakeLists.txt file after my signature works correctly in linux with: mkdir build cd build cmake .. make but in mingw64 this: mkdir build cd build cmake -G "MSYS Makefiles" .. make fails when it tries to link the first executable (which happens to be pockmark.exe for some reason) because