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 be
pockmark.exe for some reason) because it has failed to create the
directories /tmp/testinstall and /tmp/testinstall/bin.  That should
happen at this line:

FILE(MAKE_DIRECTORY ${CMAKE_RUNTIME_OUTPUT_DIRECTORY})

Ran on both platforms with extra flags:

 cmake --debug-output --trace-expand -S .. 2>&1 | tee /tmp/foo

and there are no warnings or errors in the mingw64 one when it passes the relevant lines:

C:/progs/msys64/home/david/drm_tools-1.1.32/CMakeLists.txt(46): FILE(MAKE_DIRECTORY /tmp/testinstall/bin ) Called from: [1] C:/progs/msys64/home/david/drm_tools-1.1.32/CMakeLists.txt C:/progs/msys64/home/david/drm_tools-1.1.32/CMakeLists.txt(47): if(DO_MAN ) Called from: [1] C:/progs/msys64/home/david/drm_tools-1.1.32/CMakeLists.txt

it just silently fails to create those directories. Nor were there any issues apparent above that, it was 1:1 but with different paths and versions on the two platforms.

Do this:

mkdir /tmp/testinstall
mkdir /tmp/testinstall/bin
mkdir /tmp/testinstall/man
cmake -G "MSYS Makefiles" ..
make

and it runs without any warnings or errors. The ONLY thing that fails are the
  FILE(MAKE_DIRECTORY...)
lines in the CMakeLists.txt file.

Is this just me or is that feature broken in this version of cmake???

Thanks,

David Mathog
mat...@caltech.edu
Manager, Sequence Analysis Facility, Biology Division, Caltech


_______________________________________________
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to