dilevin / Bartels

48 stars 15 forks source link

CMake cannot find Matlab R2020a #5

Closed WinterAlexander closed 4 years ago

WinterAlexander commented 4 years ago

Terminal output:

"C:\Program Files\CMake\bin\cmake.exe" -DCMAKE_BUILD_TYPE=Debug -G "CodeBlocks - MinGW Makefiles" "C:\Users\Alexander Winter\MATLAB Drive\computer-animation-nserc\Bartels\matlab"
-- Creating target: igl::core (igl)
CMake Error at C:/Users/Alexander Winter/MATLAB Drive/computer-animation-nserc/Bartels/cmake/FindPackageHandleStandardArgs.cmake:164 (message):
  Could NOT find Matlab (missing: Matlab_MEX_LIBRARY Matlab_MX_LIBRARY)
  (found version "unknown")
Call Stack (most recent call first):
  C:/Users/Alexander Winter/MATLAB Drive/computer-animation-nserc/Bartels/cmake/FindPackageHandleStandardArgs.cmake:445 (_FPHSA_FAILURE_MESSAGE)
  C:/Users/Alexander Winter/MATLAB Drive/computer-animation-nserc/Bartels/cmake/FindMatlab.cmake:1802 (find_package_handle_standard_args)
  CMakeLists.txt:24 (find_package)

-- Configuring incomplete, errors occurred!
See also "C:/Users/Alexander Winter/MATLAB Drive/computer-animation-nserc/Bartels/matlab/cmake-build-debug/CMakeFiles/CMakeOutput.log".
See also "C:/Users/Alexander Winter/MATLAB Drive/computer-animation-nserc/Bartels/matlab/cmake-build-debug/CMakeFiles/CMakeError.log".

[Finished]

CMakeError.log

Determining if the include file pthread.h exists failed with the following output:
Change Dir: C:/Users/Alexander Winter/MATLAB Drive/computer-animation-nserc/Bartels/matlab/cmake-build-debug/CMakeFiles/CMakeTmp

Run Build Command(s):C:/MinGW/bin/mingw32-make.exe cmTC_68cbc/fast && C:/MinGW/bin/mingw32-make.exe  -f CMakeFiles\cmTC_68cbc.dir\build.make CMakeFiles/cmTC_68cbc.dir/build

mingw32-make.exe[1]: Entering directory 'C:/Users/Alexander Winter/MATLAB Drive/computer-animation-nserc/Bartels/matlab/cmake-build-debug/CMakeFiles/CMakeTmp'

Building C object CMakeFiles/cmTC_68cbc.dir/CheckIncludeFile.c.obj

C:\MinGW\bin\gcc.exe    -o CMakeFiles\cmTC_68cbc.dir\CheckIncludeFile.c.obj   -c "C:\Users\Alexander Winter\MATLAB Drive\computer-animation-nserc\Bartels\matlab\cmake-build-debug\CMakeFiles\CMakeTmp\CheckIncludeFile.c"

C:\Users\Alexander Winter\MATLAB Drive\computer-animation-nserc\Bartels\matlab\cmake-build-debug\CMakeFiles\CMakeTmp\CheckIncludeFile.c:1:21: fatal error: pthread.h: No such file or directory

 #include <pthread.h>

                     ^

compilation terminated.

CMakeFiles\cmTC_68cbc.dir\build.make:84: recipe for target 'CMakeFiles/cmTC_68cbc.dir/CheckIncludeFile.c.obj' failed

mingw32-make.exe[1]: *** [CMakeFiles/cmTC_68cbc.dir/CheckIncludeFile.c.obj] Error 1

mingw32-make.exe[1]: Leaving directory 'C:/Users/Alexander Winter/MATLAB Drive/computer-animation-nserc/Bartels/matlab/cmake-build-debug/CMakeFiles/CMakeTmp'

Makefile:140: recipe for target 'cmTC_68cbc/fast' failed

mingw32-make.exe: *** [cmTC_68cbc/fast] Error 2

CMakeOutput.log

The system is: Windows - 6.1.7601 - AMD64
Compiling the C compiler identification source file "CMakeCCompilerId.c" succeeded.
Compiler: C:/MinGW/bin/gcc.exe 
Build flags: 
Id flags:  

The output was:
0

Compilation of the C compiler identification source "CMakeCCompilerId.c" produced "a.exe"

The C compiler identification is GNU, found in "C:/Users/Alexander Winter/MATLAB Drive/computer-animation-nserc/Bartels/matlab/cmake-build-debug/CMakeFiles/3.17.2/CompilerIdC/a.exe"

Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" succeeded.
Compiler: C:/MinGW/bin/g++.exe 
Build flags: 
Id flags:  

The output was:
0

Compilation of the CXX compiler identification source "CMakeCXXCompilerId.cpp" produced "a.exe"

The CXX compiler identification is GNU, found in "C:/Users/Alexander Winter/MATLAB Drive/computer-animation-nserc/Bartels/matlab/cmake-build-debug/CMakeFiles/3.17.2/CompilerIdCXX/a.exe"

Determining if the C compiler works passed with the following output:
Change Dir: C:/Users/Alexander Winter/MATLAB Drive/computer-animation-nserc/Bartels/matlab/cmake-build-debug/CMakeFiles/CMakeTmp

Run Build Command(s):C:/MinGW/bin/mingw32-make.exe cmTC_4233b/fast && C:/MinGW/bin/mingw32-make.exe  -f CMakeFiles\cmTC_4233b.dir\build.make CMakeFiles/cmTC_4233b.dir/build

mingw32-make.exe[1]: Entering directory 'C:/Users/Alexander Winter/MATLAB Drive/computer-animation-nserc/Bartels/matlab/cmake-build-debug/CMakeFiles/CMakeTmp'

Building C object CMakeFiles/cmTC_4233b.dir/testCCompiler.c.obj

C:\MinGW\bin\gcc.exe    -o CMakeFiles\cmTC_4233b.dir\testCCompiler.c.obj   -c "C:\Users\Alexander Winter\MATLAB Drive\computer-animation-nserc\Bartels\matlab\cmake-build-debug\CMakeFiles\CMakeTmp\testCCompiler.c"

Linking C executable cmTC_4233b.exe

"C:\Program Files\CMake\bin\cmake.exe" -E cmake_link_script CMakeFiles\cmTC_4233b.dir\link.txt --verbose=1

"C:\Program Files\CMake\bin\cmake.exe" -E rm -f CMakeFiles\cmTC_4233b.dir/objects.a
C:\MinGW\bin\ar.exe cr CMakeFiles\cmTC_4233b.dir/objects.a @CMakeFiles\cmTC_4233b.dir\objects1.rsp
C:\MinGW\bin\gcc.exe      -Wl,--whole-archive CMakeFiles\cmTC_4233b.dir/objects.a -Wl,--no-whole-archive  -o cmTC_4233b.exe -Wl,--out-implib,libcmTC_4233b.dll.a -Wl,--major-image-version,0,--minor-image-version,0 @CMakeFiles\cmTC_4233b.dir\linklibs.rsp
mingw32-make.exe[1]: Leaving directory 'C:/Users/Alexander Winter/MATLAB Drive/computer-animation-nserc/Bartels/matlab/cmake-build-debug/CMakeFiles/CMakeTmp'

Detecting C compiler ABI info compiled with the following output:
Change Dir: C:/Users/Alexander Winter/MATLAB Drive/computer-animation-nserc/Bartels/matlab/cmake-build-debug/CMakeFiles/CMakeTmp

Run Build Command(s):C:/MinGW/bin/mingw32-make.exe cmTC_4c9f4/fast && C:/MinGW/bin/mingw32-make.exe  -f CMakeFiles\cmTC_4c9f4.dir\build.make CMakeFiles/cmTC_4c9f4.dir/build

mingw32-make.exe[1]: Entering directory 'C:/Users/Alexander Winter/MATLAB Drive/computer-animation-nserc/Bartels/matlab/cmake-build-debug/CMakeFiles/CMakeTmp'

Building C object CMakeFiles/cmTC_4c9f4.dir/CMakeCCompilerABI.c.obj

C:\MinGW\bin\gcc.exe   -v -o CMakeFiles\cmTC_4c9f4.dir\CMakeCCompilerABI.c.obj   -c "C:\Program Files\CMake\share\cmake-3.17\Modules\CMakeCCompilerABI.c"

Using built-in specs.

COLLECT_GCC=C:\MinGW\bin\gcc.exe

Target: mingw32

Configured with: ../src/gcc-6.3.0/configure --build=x86_64-pc-linux-gnu --host=mingw32 --target=mingw32 --with-gmp=/mingw --with-mpfr --with-mpc=/mingw --with-isl=/mingw --prefix=/mingw --disable-win32-registry --with-arch=i586 --with-tune=generic --enable-languages=c,c++,objc,obj-c++,fortran,ada --with-pkgversion='MinGW.org GCC-6.3.0-1' --enable-static --enable-shared --enable-threads --with-dwarf2 --disable-sjlj-exceptions --enable-version-specific-runtime-libs --with-libiconv-prefix=/mingw --with-libintl-prefix=/mingw --enable-libstdcxx-debug --enable-libgomp --disable-libvtv --enable-nls

Thread model: win32

gcc version 6.3.0 (MinGW.org GCC-6.3.0-1) 

COLLECT_GCC_OPTIONS='-v' '-o' 'CMakeFiles\cmTC_4c9f4.dir\CMakeCCompilerABI.c.obj' '-c' '-mtune=generic' '-march=i586'

 c:/mingw/bin/../libexec/gcc/mingw32/6.3.0/cc1.exe -quiet -v -iprefix c:\mingw\bin\../lib/gcc/mingw32/6.3.0/ C:\Program Files\CMake\share\cmake-3.17\Modules\CMakeCCompilerABI.c -quiet -dumpbase CMakeCCompilerABI.c -mtune=generic -march=i586 -auxbase-strip CMakeFiles\cmTC_4c9f4.dir\CMakeCCompilerABI.c.obj -version -o C:\Users\ALEXAN~1\AppData\Local\Temp\cc8SJnc3.s

GNU C11 (MinGW.org GCC-6.3.0-1) version 6.3.0 (mingw32)

    compiled by GNU C version 6.3.0, GMP version 6.1.2, MPFR version 3.1.5, MPC version 1.0.3, isl version 0.15

GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072

ignoring duplicate directory "c:/mingw/lib/gcc/../../lib/gcc/mingw32/6.3.0/include"

ignoring duplicate directory "/mingw/lib/gcc/mingw32/6.3.0/../../../../include"

ignoring duplicate directory "c:/mingw/lib/gcc/../../include"

ignoring duplicate directory "c:/mingw/lib/gcc/../../lib/gcc/mingw32/6.3.0/include-fixed"

ignoring duplicate directory "c:/mingw/lib/gcc/../../lib/gcc/mingw32/6.3.0/../../../../mingw32/include"

ignoring duplicate directory "/mingw/include"

#include "..." search starts here:

#include <...> search starts here:

 c:\mingw\bin\../lib/gcc/mingw32/6.3.0/include

 c:\mingw\bin\../lib/gcc/mingw32/6.3.0/../../../../include

 c:\mingw\bin\../lib/gcc/mingw32/6.3.0/include-fixed

 c:\mingw\bin\../lib/gcc/mingw32/6.3.0/../../../../mingw32/include

End of search list.

GNU C11 (MinGW.org GCC-6.3.0-1) version 6.3.0 (mingw32)

    compiled by GNU C version 6.3.0, GMP version 6.1.2, MPFR version 3.1.5, MPC version 1.0.3, isl version 0.15

GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072

Compiler executable checksum: 384cad586f05ed581a9c068b2f18b408

COLLECT_GCC_OPTIONS='-v' '-o' 'CMakeFiles\cmTC_4c9f4.dir\CMakeCCompilerABI.c.obj' '-c' '-mtune=generic' '-march=i586'

 c:/mingw/bin/../lib/gcc/mingw32/6.3.0/../../../../mingw32/bin/as.exe -v -o CMakeFiles\cmTC_4c9f4.dir\CMakeCCompilerABI.c.obj C:\Users\ALEXAN~1\AppData\Local\Temp\cc8SJnc3.s

GNU assembler version 2.28 (mingw32) using BFD version (GNU Binutils) 2.28

COMPILER_PATH=c:/mingw/bin/../libexec/gcc/mingw32/6.3.0/;c:/mingw/bin/../libexec/gcc/;c:/mingw/bin/../lib/gcc/mingw32/6.3.0/../../../../mingw32/bin/

LIBRARY_PATH=c:/mingw/bin/../lib/gcc/mingw32/6.3.0/;c:/mingw/bin/../lib/gcc/;c:/mingw/bin/../lib/gcc/mingw32/6.3.0/../../../../mingw32/lib/;c:/mingw/bin/../lib/gcc/mingw32/6.3.0/../../../

COLLECT_GCC_OPTIONS='-v' '-o' 'CMakeFiles\cmTC_4c9f4.dir\CMakeCCompilerABI.c.obj' '-c' '-mtune=generic' '-march=i586'

Linking C executable cmTC_4c9f4.exe

"C:\Program Files\CMake\bin\cmake.exe" -E cmake_link_script CMakeFiles\cmTC_4c9f4.dir\link.txt --verbose=1

"C:\Program Files\CMake\bin\cmake.exe" -E rm -f CMakeFiles\cmTC_4c9f4.dir/objects.a
C:\MinGW\bin\ar.exe cr CMakeFiles\cmTC_4c9f4.dir/objects.a @CMakeFiles\cmTC_4c9f4.dir\objects1.rsp
C:\MinGW\bin\gcc.exe     -v -Wl,--whole-archive CMakeFiles\cmTC_4c9f4.dir/objects.a -Wl,--no-whole-archive  -o cmTC_4c9f4.exe -Wl,--out-implib,libcmTC_4c9f4.dll.a -Wl,--major-image-version,0,--minor-image-version,0 
Using built-in specs.

COLLECT_GCC=C:\MinGW\bin\gcc.exe

COLLECT_LTO_WRAPPER=c:/mingw/bin/../libexec/gcc/mingw32/6.3.0/lto-wrapper.exe

Target: mingw32

Configured with: ../src/gcc-6.3.0/configure --build=x86_64-pc-linux-gnu --host=mingw32 --target=mingw32 --with-gmp=/mingw --with-mpfr --with-mpc=/mingw --with-isl=/mingw --prefix=/mingw --disable-win32-registry --with-arch=i586 --with-tune=generic --enable-languages=c,c++,objc,obj-c++,fortran,ada --with-pkgversion='MinGW.org GCC-6.3.0-1' --enable-static --enable-shared --enable-threads --with-dwarf2 --disable-sjlj-exceptions --enable-version-specific-runtime-libs --with-libiconv-prefix=/mingw --with-libintl-prefix=/mingw --enable-libstdcxx-debug --enable-libgomp --disable-libvtv --enable-nls

Thread model: win32

gcc version 6.3.0 (MinGW.org GCC-6.3.0-1) 

COMPILER_PATH=c:/mingw/bin/../libexec/gcc/mingw32/6.3.0/;c:/mingw/bin/../libexec/gcc/;c:/mingw/bin/../lib/gcc/mingw32/6.3.0/../../../../mingw32/bin/

LIBRARY_PATH=c:/mingw/bin/../lib/gcc/mingw32/6.3.0/;c:/mingw/bin/../lib/gcc/;c:/mingw/bin/../lib/gcc/mingw32/6.3.0/../../../../mingw32/lib/;c:/mingw/bin/../lib/gcc/mingw32/6.3.0/../../../

COLLECT_GCC_OPTIONS='-v' '-o' 'cmTC_4c9f4.exe' '-mtune=generic' '-march=i586'

 c:/mingw/bin/../libexec/gcc/mingw32/6.3.0/collect2.exe -plugin c:/mingw/bin/../libexec/gcc/mingw32/6.3.0/liblto_plugin-0.dll -plugin-opt=c:/mingw/bin/../libexec/gcc/mingw32/6.3.0/lto-wrapper.exe -plugin-opt=-fresolution=C:\Users\ALEXAN~1\AppData\Local\Temp\ccVHUzMd.res -plugin-opt=-pass-through=-lmingw32 -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lgcc_eh -plugin-opt=-pass-through=-lmoldname -plugin-opt=-pass-through=-lmingwex -plugin-opt=-pass-through=-lmsvcrt -plugin-opt=-pass-through=-ladvapi32 -plugin-opt=-pass-through=-lshell32 -plugin-opt=-pass-through=-luser32 -plugin-opt=-pass-through=-lkernel32 -plugin-opt=-pass-through=-lmingw32 -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lgcc_eh -plugin-opt=-pass-through=-lmoldname -plugin-opt=-pass-through=-lmingwex -plugin-opt=-pass-through=-lmsvcrt -Bdynamic -o cmTC_4c9f4.exe c:/mingw/bin/../lib/gcc/mingw32/6.3.0/../../../crt2.o c:/mingw/bin/../lib/gcc/mingw32/6.3.0/crtbegin.o -Lc:/mingw/bin/../lib/gcc/mingw32/6.3.0 -Lc:/mingw/bin/../lib/gcc -Lc:/mingw/bin/../lib/gcc/mingw32/6.3.0/../../../../mingw32/lib -Lc:/mingw/bin/../lib/gcc/mingw32/6.3.0/../../.. --whole-archive CMakeFiles\cmTC_4c9f4.dir/objects.a --no-whole-archive --out-implib libcmTC_4c9f4.dll.a --major-image-version 0 --minor-image-version 0 -lmingw32 -lgcc -lgcc_eh -lmoldname -lmingwex -lmsvcrt -ladvapi32 -lshell32 -luser32 -lkernel32 -lmingw32 -lgcc -lgcc_eh -lmoldname -lmingwex -lmsvcrt c:/mingw/bin/../lib/gcc/mingw32/6.3.0/crtend.o

COLLECT_GCC_OPTIONS='-v' '-o' 'cmTC_4c9f4.exe' '-mtune=generic' '-march=i586'

mingw32-make.exe[1]: Leaving directory 'C:/Users/Alexander Winter/MATLAB Drive/computer-animation-nserc/Bartels/matlab/cmake-build-debug/CMakeFiles/CMakeTmp'

Parsed C implicit include dir info from above output: rv=done
  found start of include info
  found start of implicit include info
    add: [c:/mingw/bin/../lib/gcc/mingw32/6.3.0/include]
    add: [c:/mingw/bin/../lib/gcc/mingw32/6.3.0/../../../../include]
    add: [c:/mingw/bin/../lib/gcc/mingw32/6.3.0/include-fixed]
    add: [c:/mingw/bin/../lib/gcc/mingw32/6.3.0/../../../../mingw32/include]
  end of search list found
  collapse include dir [c:/mingw/bin/../lib/gcc/mingw32/6.3.0/include] ==> [C:/MinGW/lib/gcc/mingw32/6.3.0/include]
  collapse include dir [c:/mingw/bin/../lib/gcc/mingw32/6.3.0/../../../../include] ==> [C:/MinGW/include]
  collapse include dir [c:/mingw/bin/../lib/gcc/mingw32/6.3.0/include-fixed] ==> [C:/MinGW/lib/gcc/mingw32/6.3.0/include-fixed]
  collapse include dir [c:/mingw/bin/../lib/gcc/mingw32/6.3.0/../../../../mingw32/include] ==> [C:/MinGW/mingw32/include]
  implicit include dirs: [C:/MinGW/lib/gcc/mingw32/6.3.0/include;C:/MinGW/include;C:/MinGW/lib/gcc/mingw32/6.3.0/include-fixed;C:/MinGW/mingw32/include]

Parsed C implicit link information from above output:
  link line regex: [^( *|.*[/\])(ld\.exe|CMAKE_LINK_STARTFILE-NOTFOUND|([^/\]+-)?ld|collect2)[^/\]*( |$)]
  ignore line: [Change Dir: C:/Users/Alexander Winter/MATLAB Drive/computer-animation-nserc/Bartels/matlab/cmake-build-debug/CMakeFiles/CMakeTmp]
  ignore line: []
  ignore line: [Run Build Command(s):C:/MinGW/bin/mingw32-make.exe cmTC_4c9f4/fast && C:/MinGW/bin/mingw32-make.exe  -f CMakeFiles\cmTC_4c9f4.dir\build.make CMakeFiles/cmTC_4c9f4.dir/build]
  ignore line: [mingw32-make.exe[1]: Entering directory 'C:/Users/Alexander Winter/MATLAB Drive/computer-animation-nserc/Bartels/matlab/cmake-build-debug/CMakeFiles/CMakeTmp']
  ignore line: [Building C object CMakeFiles/cmTC_4c9f4.dir/CMakeCCompilerABI.c.obj]
  ignore line: [C:\MinGW\bin\gcc.exe   -v -o CMakeFiles\cmTC_4c9f4.dir\CMakeCCompilerABI.c.obj   -c "C:\Program Files\CMake\share\cmake-3.17\Modules\CMakeCCompilerABI.c"]
  ignore line: [Using built-in specs.]
  ignore line: [COLLECT_GCC=C:\MinGW\bin\gcc.exe]
  ignore line: [Target: mingw32]
  ignore line: [Configured with: ../src/gcc-6.3.0/configure --build=x86_64-pc-linux-gnu --host=mingw32 --target=mingw32 --with-gmp=/mingw --with-mpfr --with-mpc=/mingw --with-isl=/mingw --prefix=/mingw --disable-win32-registry --with-arch=i586 --with-tune=generic --enable-languages=c c++ objc obj-c++ fortran ada --with-pkgversion='MinGW.org GCC-6.3.0-1' --enable-static --enable-shared --enable-threads --with-dwarf2 --disable-sjlj-exceptions --enable-version-specific-runtime-libs --with-libiconv-prefix=/mingw --with-libintl-prefix=/mingw --enable-libstdcxx-debug --enable-libgomp --disable-libvtv --enable-nls]
  ignore line: [Thread model: win32]
  ignore line: [gcc version 6.3.0 (MinGW.org GCC-6.3.0-1) ]
  ignore line: [COLLECT_GCC_OPTIONS='-v' '-o' 'CMakeFiles\cmTC_4c9f4.dir\CMakeCCompilerABI.c.obj' '-c' '-mtune=generic' '-march=i586']
  ignore line: [ c:/mingw/bin/../libexec/gcc/mingw32/6.3.0/cc1.exe -quiet -v -iprefix c:\mingw\bin\../lib/gcc/mingw32/6.3.0/ C:\Program Files\CMake\share\cmake-3.17\Modules\CMakeCCompilerABI.c -quiet -dumpbase CMakeCCompilerABI.c -mtune=generic -march=i586 -auxbase-strip CMakeFiles\cmTC_4c9f4.dir\CMakeCCompilerABI.c.obj -version -o C:\Users\ALEXAN~1\AppData\Local\Temp\cc8SJnc3.s]
  ignore line: [GNU C11 (MinGW.org GCC-6.3.0-1) version 6.3.0 (mingw32)]
  ignore line: [    compiled by GNU C version 6.3.0  GMP version 6.1.2  MPFR version 3.1.5  MPC version 1.0.3  isl version 0.15]
  ignore line: [GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072]
  ignore line: [ignoring duplicate directory "c:/mingw/lib/gcc/../../lib/gcc/mingw32/6.3.0/include"]
  ignore line: [ignoring duplicate directory "/mingw/lib/gcc/mingw32/6.3.0/../../../../include"]
  ignore line: [ignoring duplicate directory "c:/mingw/lib/gcc/../../include"]
  ignore line: [ignoring duplicate directory "c:/mingw/lib/gcc/../../lib/gcc/mingw32/6.3.0/include-fixed"]
  ignore line: [ignoring duplicate directory "c:/mingw/lib/gcc/../../lib/gcc/mingw32/6.3.0/../../../../mingw32/include"]
  ignore line: [ignoring duplicate directory "/mingw/include"]
  ignore line: [#include "..." search starts here:]
  ignore line: [#include <...> search starts here:]
  ignore line: [ c:\mingw\bin\../lib/gcc/mingw32/6.3.0/include]
  ignore line: [ c:\mingw\bin\../lib/gcc/mingw32/6.3.0/../../../../include]
  ignore line: [ c:\mingw\bin\../lib/gcc/mingw32/6.3.0/include-fixed]
  ignore line: [ c:\mingw\bin\../lib/gcc/mingw32/6.3.0/../../../../mingw32/include]
  ignore line: [End of search list.]
  ignore line: [GNU C11 (MinGW.org GCC-6.3.0-1) version 6.3.0 (mingw32)]
  ignore line: [    compiled by GNU C version 6.3.0  GMP version 6.1.2  MPFR version 3.1.5  MPC version 1.0.3  isl version 0.15]
  ignore line: [GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072]
  ignore line: [Compiler executable checksum: 384cad586f05ed581a9c068b2f18b408]
  ignore line: [COLLECT_GCC_OPTIONS='-v' '-o' 'CMakeFiles\cmTC_4c9f4.dir\CMakeCCompilerABI.c.obj' '-c' '-mtune=generic' '-march=i586']
  ignore line: [ c:/mingw/bin/../lib/gcc/mingw32/6.3.0/../../../../mingw32/bin/as.exe -v -o CMakeFiles\cmTC_4c9f4.dir\CMakeCCompilerABI.c.obj C:\Users\ALEXAN~1\AppData\Local\Temp\cc8SJnc3.s]
  ignore line: [GNU assembler version 2.28 (mingw32) using BFD version (GNU Binutils) 2.28]
  ignore line: [COMPILER_PATH=c:/mingw/bin/../libexec/gcc/mingw32/6.3.0/]
  ignore line: [c:/mingw/bin/../libexec/gcc/]
  ignore line: [c:/mingw/bin/../lib/gcc/mingw32/6.3.0/../../../../mingw32/bin/]
  ignore line: [LIBRARY_PATH=c:/mingw/bin/../lib/gcc/mingw32/6.3.0/]
  ignore line: [c:/mingw/bin/../lib/gcc/]
  ignore line: [c:/mingw/bin/../lib/gcc/mingw32/6.3.0/../../../../mingw32/lib/]
  ignore line: [c:/mingw/bin/../lib/gcc/mingw32/6.3.0/../../../]
  ignore line: [COLLECT_GCC_OPTIONS='-v' '-o' 'CMakeFiles\cmTC_4c9f4.dir\CMakeCCompilerABI.c.obj' '-c' '-mtune=generic' '-march=i586']
  ignore line: [Linking C executable cmTC_4c9f4.exe]
  ignore line: ["C:\Program Files\CMake\bin\cmake.exe" -E cmake_link_script CMakeFiles\cmTC_4c9f4.dir\link.txt --verbose=1]
  ignore line: ["C:\Program Files\CMake\bin\cmake.exe" -E rm -f CMakeFiles\cmTC_4c9f4.dir/objects.a]
  ignore line: [C:\MinGW\bin\ar.exe cr CMakeFiles\cmTC_4c9f4.dir/objects.a @CMakeFiles\cmTC_4c9f4.dir\objects1.rsp]
  ignore line: [C:\MinGW\bin\gcc.exe     -v -Wl --whole-archive CMakeFiles\cmTC_4c9f4.dir/objects.a -Wl --no-whole-archive  -o cmTC_4c9f4.exe -Wl --out-implib libcmTC_4c9f4.dll.a -Wl --major-image-version 0 --minor-image-version 0 ]
  ignore line: [Using built-in specs.]
  ignore line: [COLLECT_GCC=C:\MinGW\bin\gcc.exe]
  ignore line: [COLLECT_LTO_WRAPPER=c:/mingw/bin/../libexec/gcc/mingw32/6.3.0/lto-wrapper.exe]
  ignore line: [Target: mingw32]
  ignore line: [Configured with: ../src/gcc-6.3.0/configure --build=x86_64-pc-linux-gnu --host=mingw32 --target=mingw32 --with-gmp=/mingw --with-mpfr --with-mpc=/mingw --with-isl=/mingw --prefix=/mingw --disable-win32-registry --with-arch=i586 --with-tune=generic --enable-languages=c c++ objc obj-c++ fortran ada --with-pkgversion='MinGW.org GCC-6.3.0-1' --enable-static --enable-shared --enable-threads --with-dwarf2 --disable-sjlj-exceptions --enable-version-specific-runtime-libs --with-libiconv-prefix=/mingw --with-libintl-prefix=/mingw --enable-libstdcxx-debug --enable-libgomp --disable-libvtv --enable-nls]
  ignore line: [Thread model: win32]
  ignore line: [gcc version 6.3.0 (MinGW.org GCC-6.3.0-1) ]
  ignore line: [COMPILER_PATH=c:/mingw/bin/../libexec/gcc/mingw32/6.3.0/]
  ignore line: [c:/mingw/bin/../libexec/gcc/]
  ignore line: [c:/mingw/bin/../lib/gcc/mingw32/6.3.0/../../../../mingw32/bin/]
  ignore line: [LIBRARY_PATH=c:/mingw/bin/../lib/gcc/mingw32/6.3.0/]
  ignore line: [c:/mingw/bin/../lib/gcc/]
  ignore line: [c:/mingw/bin/../lib/gcc/mingw32/6.3.0/../../../../mingw32/lib/]
  ignore line: [c:/mingw/bin/../lib/gcc/mingw32/6.3.0/../../../]
  ignore line: [COLLECT_GCC_OPTIONS='-v' '-o' 'cmTC_4c9f4.exe' '-mtune=generic' '-march=i586']
  link line: [ c:/mingw/bin/../libexec/gcc/mingw32/6.3.0/collect2.exe -plugin c:/mingw/bin/../libexec/gcc/mingw32/6.3.0/liblto_plugin-0.dll -plugin-opt=c:/mingw/bin/../libexec/gcc/mingw32/6.3.0/lto-wrapper.exe -plugin-opt=-fresolution=C:\Users\ALEXAN~1\AppData\Local\Temp\ccVHUzMd.res -plugin-opt=-pass-through=-lmingw32 -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lgcc_eh -plugin-opt=-pass-through=-lmoldname -plugin-opt=-pass-through=-lmingwex -plugin-opt=-pass-through=-lmsvcrt -plugin-opt=-pass-through=-ladvapi32 -plugin-opt=-pass-through=-lshell32 -plugin-opt=-pass-through=-luser32 -plugin-opt=-pass-through=-lkernel32 -plugin-opt=-pass-through=-lmingw32 -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lgcc_eh -plugin-opt=-pass-through=-lmoldname -plugin-opt=-pass-through=-lmingwex -plugin-opt=-pass-through=-lmsvcrt -Bdynamic -o cmTC_4c9f4.exe c:/mingw/bin/../lib/gcc/mingw32/6.3.0/../../../crt2.o c:/mingw/bin/../lib/gcc/mingw32/6.3.0/crtbegin.o -Lc:/mingw/bin/../lib/gcc/mingw32/6.3.0 -Lc:/mingw/bin/../lib/gcc -Lc:/mingw/bin/../lib/gcc/mingw32/6.3.0/../../../../mingw32/lib -Lc:/mingw/bin/../lib/gcc/mingw32/6.3.0/../../.. --whole-archive CMakeFiles\cmTC_4c9f4.dir/objects.a --no-whole-archive --out-implib libcmTC_4c9f4.dll.a --major-image-version 0 --minor-image-version 0 -lmingw32 -lgcc -lgcc_eh -lmoldname -lmingwex -lmsvcrt -ladvapi32 -lshell32 -luser32 -lkernel32 -lmingw32 -lgcc -lgcc_eh -lmoldname -lmingwex -lmsvcrt c:/mingw/bin/../lib/gcc/mingw32/6.3.0/crtend.o]
    arg [c:/mingw/bin/../libexec/gcc/mingw32/6.3.0/collect2.exe] ==> ignore
    arg [-plugin] ==> ignore
    arg [c:/mingw/bin/../libexec/gcc/mingw32/6.3.0/liblto_plugin-0.dll] ==> ignore
    arg [-plugin-opt=c:/mingw/bin/../libexec/gcc/mingw32/6.3.0/lto-wrapper.exe] ==> ignore
    arg [-plugin-opt=-fresolution=C:\Users\ALEXAN~1\AppData\Local\Temp\ccVHUzMd.res] ==> ignore
    arg [-plugin-opt=-pass-through=-lmingw32] ==> ignore
    arg [-plugin-opt=-pass-through=-lgcc] ==> ignore
    arg [-plugin-opt=-pass-through=-lgcc_eh] ==> ignore
    arg [-plugin-opt=-pass-through=-lmoldname] ==> ignore
    arg [-plugin-opt=-pass-through=-lmingwex] ==> ignore
    arg [-plugin-opt=-pass-through=-lmsvcrt] ==> ignore
    arg [-plugin-opt=-pass-through=-ladvapi32] ==> ignore
    arg [-plugin-opt=-pass-through=-lshell32] ==> ignore
    arg [-plugin-opt=-pass-through=-luser32] ==> ignore
    arg [-plugin-opt=-pass-through=-lkernel32] ==> ignore
    arg [-plugin-opt=-pass-through=-lmingw32] ==> ignore
    arg [-plugin-opt=-pass-through=-lgcc] ==> ignore
    arg [-plugin-opt=-pass-through=-lgcc_eh] ==> ignore
    arg [-plugin-opt=-pass-through=-lmoldname] ==> ignore
    arg [-plugin-opt=-pass-through=-lmingwex] ==> ignore
    arg [-plugin-opt=-pass-through=-lmsvcrt] ==> ignore
    arg [-Bdynamic] ==> ignore
    arg [-o] ==> ignore
    arg [cmTC_4c9f4.exe] ==> ignore
    arg [c:/mingw/bin/../lib/gcc/mingw32/6.3.0/../../../crt2.o] ==> ignore
    arg [c:/mingw/bin/../lib/gcc/mingw32/6.3.0/crtbegin.o] ==> ignore
    arg [-Lc:/mingw/bin/../lib/gcc/mingw32/6.3.0] ==> dir [c:/mingw/bin/../lib/gcc/mingw32/6.3.0]
    arg [-Lc:/mingw/bin/../lib/gcc] ==> dir [c:/mingw/bin/../lib/gcc]
    arg [-Lc:/mingw/bin/../lib/gcc/mingw32/6.3.0/../../../../mingw32/lib] ==> dir [c:/mingw/bin/../lib/gcc/mingw32/6.3.0/../../../../mingw32/lib]
    arg [-Lc:/mingw/bin/../lib/gcc/mingw32/6.3.0/../../..] ==> dir [c:/mingw/bin/../lib/gcc/mingw32/6.3.0/../../..]
    arg [--whole-archive] ==> ignore
    arg [CMakeFiles\cmTC_4c9f4.dir/objects.a] ==> ignore
    arg [--no-whole-archive] ==> ignore
    arg [--out-implib] ==> ignore
    arg [libcmTC_4c9f4.dll.a] ==> ignore
    arg [--major-image-version] ==> ignore
    arg [0] ==> ignore
    arg [--minor-image-version] ==> ignore
    arg [0] ==> ignore
    arg [-lmingw32] ==> lib [mingw32]
    arg [-lgcc] ==> lib [gcc]
    arg [-lgcc_eh] ==> lib [gcc_eh]
    arg [-lmoldname] ==> lib [moldname]
    arg [-lmingwex] ==> lib [mingwex]
    arg [-lmsvcrt] ==> lib [msvcrt]
    arg [-ladvapi32] ==> lib [advapi32]
    arg [-lshell32] ==> lib [shell32]
    arg [-luser32] ==> lib [user32]
    arg [-lkernel32] ==> lib [kernel32]
    arg [-lmingw32] ==> lib [mingw32]
    arg [-lgcc] ==> lib [gcc]
    arg [-lgcc_eh] ==> lib [gcc_eh]
    arg [-lmoldname] ==> lib [moldname]
    arg [-lmingwex] ==> lib [mingwex]
    arg [-lmsvcrt] ==> lib [msvcrt]
    arg [c:/mingw/bin/../lib/gcc/mingw32/6.3.0/crtend.o] ==> ignore
  remove lib [gcc_eh]
  remove lib [msvcrt]
  remove lib [gcc_eh]
  remove lib [msvcrt]
  collapse library dir [c:/mingw/bin/../lib/gcc/mingw32/6.3.0] ==> [C:/MinGW/lib/gcc/mingw32/6.3.0]
  collapse library dir [c:/mingw/bin/../lib/gcc] ==> [C:/MinGW/lib/gcc]
  collapse library dir [c:/mingw/bin/../lib/gcc/mingw32/6.3.0/../../../../mingw32/lib] ==> [C:/MinGW/mingw32/lib]
  collapse library dir [c:/mingw/bin/../lib/gcc/mingw32/6.3.0/../../..] ==> [C:/MinGW/lib]
  implicit libs: [mingw32;gcc;moldname;mingwex;advapi32;shell32;user32;kernel32;mingw32;gcc;moldname;mingwex]
  implicit dirs: [C:/MinGW/lib/gcc/mingw32/6.3.0;C:/MinGW/lib/gcc;C:/MinGW/mingw32/lib;C:/MinGW/lib]
  implicit fwks: []

Determining if the CXX compiler works passed with the following output:
Change Dir: C:/Users/Alexander Winter/MATLAB Drive/computer-animation-nserc/Bartels/matlab/cmake-build-debug/CMakeFiles/CMakeTmp

Run Build Command(s):C:/MinGW/bin/mingw32-make.exe cmTC_8e0fb/fast && C:/MinGW/bin/mingw32-make.exe  -f CMakeFiles\cmTC_8e0fb.dir\build.make CMakeFiles/cmTC_8e0fb.dir/build

mingw32-make.exe[1]: Entering directory 'C:/Users/Alexander Winter/MATLAB Drive/computer-animation-nserc/Bartels/matlab/cmake-build-debug/CMakeFiles/CMakeTmp'

Building CXX object CMakeFiles/cmTC_8e0fb.dir/testCXXCompiler.cxx.obj

C:\MinGW\bin\g++.exe     -o CMakeFiles\cmTC_8e0fb.dir\testCXXCompiler.cxx.obj -c "C:\Users\Alexander Winter\MATLAB Drive\computer-animation-nserc\Bartels\matlab\cmake-build-debug\CMakeFiles\CMakeTmp\testCXXCompiler.cxx"

Linking CXX executable cmTC_8e0fb.exe

"C:\Program Files\CMake\bin\cmake.exe" -E cmake_link_script CMakeFiles\cmTC_8e0fb.dir\link.txt --verbose=1

"C:\Program Files\CMake\bin\cmake.exe" -E rm -f CMakeFiles\cmTC_8e0fb.dir/objects.a
C:\MinGW\bin\ar.exe cr CMakeFiles\cmTC_8e0fb.dir/objects.a @CMakeFiles\cmTC_8e0fb.dir\objects1.rsp
C:\MinGW\bin\g++.exe      -Wl,--whole-archive CMakeFiles\cmTC_8e0fb.dir/objects.a -Wl,--no-whole-archive  -o cmTC_8e0fb.exe -Wl,--out-implib,libcmTC_8e0fb.dll.a -Wl,--major-image-version,0,--minor-image-version,0 @CMakeFiles\cmTC_8e0fb.dir\linklibs.rsp
mingw32-make.exe[1]: Leaving directory 'C:/Users/Alexander Winter/MATLAB Drive/computer-animation-nserc/Bartels/matlab/cmake-build-debug/CMakeFiles/CMakeTmp'

Detecting CXX compiler ABI info compiled with the following output:
Change Dir: C:/Users/Alexander Winter/MATLAB Drive/computer-animation-nserc/Bartels/matlab/cmake-build-debug/CMakeFiles/CMakeTmp

Run Build Command(s):C:/MinGW/bin/mingw32-make.exe cmTC_a3b4d/fast && C:/MinGW/bin/mingw32-make.exe  -f CMakeFiles\cmTC_a3b4d.dir\build.make CMakeFiles/cmTC_a3b4d.dir/build

mingw32-make.exe[1]: Entering directory 'C:/Users/Alexander Winter/MATLAB Drive/computer-animation-nserc/Bartels/matlab/cmake-build-debug/CMakeFiles/CMakeTmp'

Building CXX object CMakeFiles/cmTC_a3b4d.dir/CMakeCXXCompilerABI.cpp.obj

C:\MinGW\bin\g++.exe    -v -o CMakeFiles\cmTC_a3b4d.dir\CMakeCXXCompilerABI.cpp.obj -c "C:\Program Files\CMake\share\cmake-3.17\Modules\CMakeCXXCompilerABI.cpp"

Using built-in specs.

COLLECT_GCC=C:\MinGW\bin\g++.exe

Target: mingw32

Configured with: ../src/gcc-6.3.0/configure --build=x86_64-pc-linux-gnu --host=mingw32 --with-gmp=/mingw --with-mpfr=/mingw --with-mpc=/mingw --with-isl=/mingw --prefix=/mingw --disable-win32-registry --target=mingw32 --with-arch=i586 --enable-languages=c,c++,objc,obj-c++,fortran,ada --with-pkgversion='MinGW.org GCC-6.3.0-1' --enable-static --enable-shared --enable-threads --with-dwarf2 --disable-sjlj-exceptions --enable-version-specific-runtime-libs --with-libiconv-prefix=/mingw --with-libintl-prefix=/mingw --enable-libstdcxx-debug --with-tune=generic --enable-libgomp --disable-libvtv --enable-nls

Thread model: win32

gcc version 6.3.0 (MinGW.org GCC-6.3.0-1) 

COLLECT_GCC_OPTIONS='-v' '-o' 'CMakeFiles\cmTC_a3b4d.dir\CMakeCXXCompilerABI.cpp.obj' '-c' '-shared-libgcc' '-mtune=generic' '-march=i586'

 c:/mingw/bin/../libexec/gcc/mingw32/6.3.0/cc1plus.exe -quiet -v -iprefix c:\mingw\bin\../lib/gcc/mingw32/6.3.0/ C:\Program Files\CMake\share\cmake-3.17\Modules\CMakeCXXCompilerABI.cpp -quiet -dumpbase CMakeCXXCompilerABI.cpp -mtune=generic -march=i586 -auxbase-strip CMakeFiles\cmTC_a3b4d.dir\CMakeCXXCompilerABI.cpp.obj -version -o C:\Users\ALEXAN~1\AppData\Local\Temp\ccCgn01A.s

GNU C++14 (MinGW.org GCC-6.3.0-1) version 6.3.0 (mingw32)

    compiled by GNU C version 6.3.0, GMP version 6.1.2, MPFR version 3.1.5, MPC version 1.0.2, isl version 0.15

warning: MPC header version 1.0.2 differs from library version 1.0.3.

GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072

ignoring duplicate directory "c:/mingw/lib/gcc/../../lib/gcc/mingw32/6.3.0/include/c++"

ignoring duplicate directory "c:/mingw/lib/gcc/../../lib/gcc/mingw32/6.3.0/include/c++/mingw32"

ignoring duplicate directory "c:/mingw/lib/gcc/../../lib/gcc/mingw32/6.3.0/include/c++/backward"

ignoring duplicate directory "c:/mingw/lib/gcc/../../lib/gcc/mingw32/6.3.0/include"

ignoring duplicate directory "/mingw/lib/gcc/mingw32/6.3.0/../../../../include"

ignoring duplicate directory "c:/mingw/lib/gcc/../../include"

ignoring duplicate directory "c:/mingw/lib/gcc/../../lib/gcc/mingw32/6.3.0/include-fixed"

ignoring duplicate directory "c:/mingw/lib/gcc/../../lib/gcc/mingw32/6.3.0/../../../../mingw32/include"

ignoring duplicate directory "/mingw/include"

#include "..." search starts here:

#include <...> search starts here:

 c:\mingw\bin\../lib/gcc/mingw32/6.3.0/include/c++

 c:\mingw\bin\../lib/gcc/mingw32/6.3.0/include/c++/mingw32

 c:\mingw\bin\../lib/gcc/mingw32/6.3.0/include/c++/backward

 c:\mingw\bin\../lib/gcc/mingw32/6.3.0/include

 c:\mingw\bin\../lib/gcc/mingw32/6.3.0/../../../../include

 c:\mingw\bin\../lib/gcc/mingw32/6.3.0/include-fixed

 c:\mingw\bin\../lib/gcc/mingw32/6.3.0/../../../../mingw32/include

End of search list.

GNU C++14 (MinGW.org GCC-6.3.0-1) version 6.3.0 (mingw32)

    compiled by GNU C version 6.3.0, GMP version 6.1.2, MPFR version 3.1.5, MPC version 1.0.2, isl version 0.15

warning: MPC header version 1.0.2 differs from library version 1.0.3.

GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072

Compiler executable checksum: af09a87986453bf79da3565f33c7648f

COLLECT_GCC_OPTIONS='-v' '-o' 'CMakeFiles\cmTC_a3b4d.dir\CMakeCXXCompilerABI.cpp.obj' '-c' '-shared-libgcc' '-mtune=generic' '-march=i586'

 c:/mingw/bin/../lib/gcc/mingw32/6.3.0/../../../../mingw32/bin/as.exe -v -o CMakeFiles\cmTC_a3b4d.dir\CMakeCXXCompilerABI.cpp.obj C:\Users\ALEXAN~1\AppData\Local\Temp\ccCgn01A.s

GNU assembler version 2.28 (mingw32) using BFD version (GNU Binutils) 2.28

COMPILER_PATH=c:/mingw/bin/../libexec/gcc/mingw32/6.3.0/;c:/mingw/bin/../libexec/gcc/;c:/mingw/bin/../lib/gcc/mingw32/6.3.0/../../../../mingw32/bin/

LIBRARY_PATH=c:/mingw/bin/../lib/gcc/mingw32/6.3.0/;c:/mingw/bin/../lib/gcc/;c:/mingw/bin/../lib/gcc/mingw32/6.3.0/../../../../mingw32/lib/;c:/mingw/bin/../lib/gcc/mingw32/6.3.0/../../../

COLLECT_GCC_OPTIONS='-v' '-o' 'CMakeFiles\cmTC_a3b4d.dir\CMakeCXXCompilerABI.cpp.obj' '-c' '-shared-libgcc' '-mtune=generic' '-march=i586'

Linking CXX executable cmTC_a3b4d.exe

"C:\Program Files\CMake\bin\cmake.exe" -E cmake_link_script CMakeFiles\cmTC_a3b4d.dir\link.txt --verbose=1

"C:\Program Files\CMake\bin\cmake.exe" -E rm -f CMakeFiles\cmTC_a3b4d.dir/objects.a
C:\MinGW\bin\ar.exe cr CMakeFiles\cmTC_a3b4d.dir/objects.a @CMakeFiles\cmTC_a3b4d.dir\objects1.rsp
C:\MinGW\bin\g++.exe     -v -Wl,--whole-archive CMakeFiles\cmTC_a3b4d.dir/objects.a -Wl,--no-whole-archive  -o cmTC_a3b4d.exe -Wl,--out-implib,libcmTC_a3b4d.dll.a -Wl,--major-image-version,0,--minor-image-version,0 
Using built-in specs.

COLLECT_GCC=C:\MinGW\bin\g++.exe

COLLECT_LTO_WRAPPER=c:/mingw/bin/../libexec/gcc/mingw32/6.3.0/lto-wrapper.exe

Target: mingw32

Configured with: ../src/gcc-6.3.0/configure --build=x86_64-pc-linux-gnu --host=mingw32 --with-gmp=/mingw --with-mpfr=/mingw --with-mpc=/mingw --with-isl=/mingw --prefix=/mingw --disable-win32-registry --target=mingw32 --with-arch=i586 --enable-languages=c,c++,objc,obj-c++,fortran,ada --with-pkgversion='MinGW.org GCC-6.3.0-1' --enable-static --enable-shared --enable-threads --with-dwarf2 --disable-sjlj-exceptions --enable-version-specific-runtime-libs --with-libiconv-prefix=/mingw --with-libintl-prefix=/mingw --enable-libstdcxx-debug --with-tune=generic --enable-libgomp --disable-libvtv --enable-nls

Thread model: win32

gcc version 6.3.0 (MinGW.org GCC-6.3.0-1) 

COMPILER_PATH=c:/mingw/bin/../libexec/gcc/mingw32/6.3.0/;c:/mingw/bin/../libexec/gcc/;c:/mingw/bin/../lib/gcc/mingw32/6.3.0/../../../../mingw32/bin/

LIBRARY_PATH=c:/mingw/bin/../lib/gcc/mingw32/6.3.0/;c:/mingw/bin/../lib/gcc/;c:/mingw/bin/../lib/gcc/mingw32/6.3.0/../../../../mingw32/lib/;c:/mingw/bin/../lib/gcc/mingw32/6.3.0/../../../

COLLECT_GCC_OPTIONS='-v' '-o' 'cmTC_a3b4d.exe' '-shared-libgcc' '-mtune=generic' '-march=i586'

 c:/mingw/bin/../libexec/gcc/mingw32/6.3.0/collect2.exe -plugin c:/mingw/bin/../libexec/gcc/mingw32/6.3.0/liblto_plugin-0.dll -plugin-opt=c:/mingw/bin/../libexec/gcc/mingw32/6.3.0/lto-wrapper.exe -plugin-opt=-fresolution=C:\Users\ALEXAN~1\AppData\Local\Temp\ccjCIpTL.res -plugin-opt=-pass-through=-lmingw32 -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lmoldname -plugin-opt=-pass-through=-lmingwex -plugin-opt=-pass-through=-lmsvcrt -plugin-opt=-pass-through=-ladvapi32 -plugin-opt=-pass-through=-lshell32 -plugin-opt=-pass-through=-luser32 -plugin-opt=-pass-through=-lkernel32 -plugin-opt=-pass-through=-lmingw32 -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lmoldname -plugin-opt=-pass-through=-lmingwex -plugin-opt=-pass-through=-lmsvcrt -Bdynamic -u ___register_frame_info -u ___deregister_frame_info -o cmTC_a3b4d.exe c:/mingw/bin/../lib/gcc/mingw32/6.3.0/../../../crt2.o c:/mingw/bin/../lib/gcc/mingw32/6.3.0/crtbegin.o -Lc:/mingw/bin/../lib/gcc/mingw32/6.3.0 -Lc:/mingw/bin/../lib/gcc -Lc:/mingw/bin/../lib/gcc/mingw32/6.3.0/../../../../mingw32/lib -Lc:/mingw/bin/../lib/gcc/mingw32/6.3.0/../../.. --whole-archive CMakeFiles\cmTC_a3b4d.dir/objects.a --no-whole-archive --out-implib libcmTC_a3b4d.dll.a --major-image-version 0 --minor-image-version 0 -lstdc++ -lmingw32 -lgcc_s -lgcc -lmoldname -lmingwex -lmsvcrt -ladvapi32 -lshell32 -luser32 -lkernel32 -lmingw32 -lgcc_s -lgcc -lmoldname -lmingwex -lmsvcrt c:/mingw/bin/../lib/gcc/mingw32/6.3.0/crtend.o

COLLECT_GCC_OPTIONS='-v' '-o' 'cmTC_a3b4d.exe' '-shared-libgcc' '-mtune=generic' '-march=i586'

mingw32-make.exe[1]: Leaving directory 'C:/Users/Alexander Winter/MATLAB Drive/computer-animation-nserc/Bartels/matlab/cmake-build-debug/CMakeFiles/CMakeTmp'

Parsed CXX implicit include dir info from above output: rv=done
  found start of include info
  found start of implicit include info
    add: [c:/mingw/bin/../lib/gcc/mingw32/6.3.0/include/c++]
    add: [c:/mingw/bin/../lib/gcc/mingw32/6.3.0/include/c++/mingw32]
    add: [c:/mingw/bin/../lib/gcc/mingw32/6.3.0/include/c++/backward]
    add: [c:/mingw/bin/../lib/gcc/mingw32/6.3.0/include]
    add: [c:/mingw/bin/../lib/gcc/mingw32/6.3.0/../../../../include]
    add: [c:/mingw/bin/../lib/gcc/mingw32/6.3.0/include-fixed]
    add: [c:/mingw/bin/../lib/gcc/mingw32/6.3.0/../../../../mingw32/include]
  end of search list found
  collapse include dir [c:/mingw/bin/../lib/gcc/mingw32/6.3.0/include/c++] ==> [C:/MinGW/lib/gcc/mingw32/6.3.0/include/c++]
  collapse include dir [c:/mingw/bin/../lib/gcc/mingw32/6.3.0/include/c++/mingw32] ==> [C:/MinGW/lib/gcc/mingw32/6.3.0/include/c++/mingw32]
  collapse include dir [c:/mingw/bin/../lib/gcc/mingw32/6.3.0/include/c++/backward] ==> [C:/MinGW/lib/gcc/mingw32/6.3.0/include/c++/backward]
  collapse include dir [c:/mingw/bin/../lib/gcc/mingw32/6.3.0/include] ==> [C:/MinGW/lib/gcc/mingw32/6.3.0/include]
  collapse include dir [c:/mingw/bin/../lib/gcc/mingw32/6.3.0/../../../../include] ==> [C:/MinGW/include]
  collapse include dir [c:/mingw/bin/../lib/gcc/mingw32/6.3.0/include-fixed] ==> [C:/MinGW/lib/gcc/mingw32/6.3.0/include-fixed]
  collapse include dir [c:/mingw/bin/../lib/gcc/mingw32/6.3.0/../../../../mingw32/include] ==> [C:/MinGW/mingw32/include]
  implicit include dirs: [C:/MinGW/lib/gcc/mingw32/6.3.0/include/c++;C:/MinGW/lib/gcc/mingw32/6.3.0/include/c++/mingw32;C:/MinGW/lib/gcc/mingw32/6.3.0/include/c++/backward;C:/MinGW/lib/gcc/mingw32/6.3.0/include;C:/MinGW/include;C:/MinGW/lib/gcc/mingw32/6.3.0/include-fixed;C:/MinGW/mingw32/include]

Parsed CXX implicit link information from above output:
  link line regex: [^( *|.*[/\])(ld\.exe|CMAKE_LINK_STARTFILE-NOTFOUND|([^/\]+-)?ld|collect2)[^/\]*( |$)]
  ignore line: [Change Dir: C:/Users/Alexander Winter/MATLAB Drive/computer-animation-nserc/Bartels/matlab/cmake-build-debug/CMakeFiles/CMakeTmp]
  ignore line: []
  ignore line: [Run Build Command(s):C:/MinGW/bin/mingw32-make.exe cmTC_a3b4d/fast && C:/MinGW/bin/mingw32-make.exe  -f CMakeFiles\cmTC_a3b4d.dir\build.make CMakeFiles/cmTC_a3b4d.dir/build]
  ignore line: [mingw32-make.exe[1]: Entering directory 'C:/Users/Alexander Winter/MATLAB Drive/computer-animation-nserc/Bartels/matlab/cmake-build-debug/CMakeFiles/CMakeTmp']
  ignore line: [Building CXX object CMakeFiles/cmTC_a3b4d.dir/CMakeCXXCompilerABI.cpp.obj]
  ignore line: [C:\MinGW\bin\g++.exe    -v -o CMakeFiles\cmTC_a3b4d.dir\CMakeCXXCompilerABI.cpp.obj -c "C:\Program Files\CMake\share\cmake-3.17\Modules\CMakeCXXCompilerABI.cpp"]
  ignore line: [Using built-in specs.]
  ignore line: [COLLECT_GCC=C:\MinGW\bin\g++.exe]
  ignore line: [Target: mingw32]
  ignore line: [Configured with: ../src/gcc-6.3.0/configure --build=x86_64-pc-linux-gnu --host=mingw32 --with-gmp=/mingw --with-mpfr=/mingw --with-mpc=/mingw --with-isl=/mingw --prefix=/mingw --disable-win32-registry --target=mingw32 --with-arch=i586 --enable-languages=c c++ objc obj-c++ fortran ada --with-pkgversion='MinGW.org GCC-6.3.0-1' --enable-static --enable-shared --enable-threads --with-dwarf2 --disable-sjlj-exceptions --enable-version-specific-runtime-libs --with-libiconv-prefix=/mingw --with-libintl-prefix=/mingw --enable-libstdcxx-debug --with-tune=generic --enable-libgomp --disable-libvtv --enable-nls]
  ignore line: [Thread model: win32]
  ignore line: [gcc version 6.3.0 (MinGW.org GCC-6.3.0-1) ]
  ignore line: [COLLECT_GCC_OPTIONS='-v' '-o' 'CMakeFiles\cmTC_a3b4d.dir\CMakeCXXCompilerABI.cpp.obj' '-c' '-shared-libgcc' '-mtune=generic' '-march=i586']
  ignore line: [ c:/mingw/bin/../libexec/gcc/mingw32/6.3.0/cc1plus.exe -quiet -v -iprefix c:\mingw\bin\../lib/gcc/mingw32/6.3.0/ C:\Program Files\CMake\share\cmake-3.17\Modules\CMakeCXXCompilerABI.cpp -quiet -dumpbase CMakeCXXCompilerABI.cpp -mtune=generic -march=i586 -auxbase-strip CMakeFiles\cmTC_a3b4d.dir\CMakeCXXCompilerABI.cpp.obj -version -o C:\Users\ALEXAN~1\AppData\Local\Temp\ccCgn01A.s]
  ignore line: [GNU C++14 (MinGW.org GCC-6.3.0-1) version 6.3.0 (mingw32)]
  ignore line: [    compiled by GNU C version 6.3.0  GMP version 6.1.2  MPFR version 3.1.5  MPC version 1.0.2  isl version 0.15]
  ignore line: [warning: MPC header version 1.0.2 differs from library version 1.0.3.]
  ignore line: [GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072]
  ignore line: [ignoring duplicate directory "c:/mingw/lib/gcc/../../lib/gcc/mingw32/6.3.0/include/c++"]
  ignore line: [ignoring duplicate directory "c:/mingw/lib/gcc/../../lib/gcc/mingw32/6.3.0/include/c++/mingw32"]
  ignore line: [ignoring duplicate directory "c:/mingw/lib/gcc/../../lib/gcc/mingw32/6.3.0/include/c++/backward"]
  ignore line: [ignoring duplicate directory "c:/mingw/lib/gcc/../../lib/gcc/mingw32/6.3.0/include"]
  ignore line: [ignoring duplicate directory "/mingw/lib/gcc/mingw32/6.3.0/../../../../include"]
  ignore line: [ignoring duplicate directory "c:/mingw/lib/gcc/../../include"]
  ignore line: [ignoring duplicate directory "c:/mingw/lib/gcc/../../lib/gcc/mingw32/6.3.0/include-fixed"]
  ignore line: [ignoring duplicate directory "c:/mingw/lib/gcc/../../lib/gcc/mingw32/6.3.0/../../../../mingw32/include"]
  ignore line: [ignoring duplicate directory "/mingw/include"]
  ignore line: [#include "..." search starts here:]
  ignore line: [#include <...> search starts here:]
  ignore line: [ c:\mingw\bin\../lib/gcc/mingw32/6.3.0/include/c++]
  ignore line: [ c:\mingw\bin\../lib/gcc/mingw32/6.3.0/include/c++/mingw32]
  ignore line: [ c:\mingw\bin\../lib/gcc/mingw32/6.3.0/include/c++/backward]
  ignore line: [ c:\mingw\bin\../lib/gcc/mingw32/6.3.0/include]
  ignore line: [ c:\mingw\bin\../lib/gcc/mingw32/6.3.0/../../../../include]
  ignore line: [ c:\mingw\bin\../lib/gcc/mingw32/6.3.0/include-fixed]
  ignore line: [ c:\mingw\bin\../lib/gcc/mingw32/6.3.0/../../../../mingw32/include]
  ignore line: [End of search list.]
  ignore line: [GNU C++14 (MinGW.org GCC-6.3.0-1) version 6.3.0 (mingw32)]
  ignore line: [    compiled by GNU C version 6.3.0  GMP version 6.1.2  MPFR version 3.1.5  MPC version 1.0.2  isl version 0.15]
  ignore line: [warning: MPC header version 1.0.2 differs from library version 1.0.3.]
  ignore line: [GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072]
  ignore line: [Compiler executable checksum: af09a87986453bf79da3565f33c7648f]
  ignore line: [COLLECT_GCC_OPTIONS='-v' '-o' 'CMakeFiles\cmTC_a3b4d.dir\CMakeCXXCompilerABI.cpp.obj' '-c' '-shared-libgcc' '-mtune=generic' '-march=i586']
  ignore line: [ c:/mingw/bin/../lib/gcc/mingw32/6.3.0/../../../../mingw32/bin/as.exe -v -o CMakeFiles\cmTC_a3b4d.dir\CMakeCXXCompilerABI.cpp.obj C:\Users\ALEXAN~1\AppData\Local\Temp\ccCgn01A.s]
  ignore line: [GNU assembler version 2.28 (mingw32) using BFD version (GNU Binutils) 2.28]
  ignore line: [COMPILER_PATH=c:/mingw/bin/../libexec/gcc/mingw32/6.3.0/]
  ignore line: [c:/mingw/bin/../libexec/gcc/]
  ignore line: [c:/mingw/bin/../lib/gcc/mingw32/6.3.0/../../../../mingw32/bin/]
  ignore line: [LIBRARY_PATH=c:/mingw/bin/../lib/gcc/mingw32/6.3.0/]
  ignore line: [c:/mingw/bin/../lib/gcc/]
  ignore line: [c:/mingw/bin/../lib/gcc/mingw32/6.3.0/../../../../mingw32/lib/]
  ignore line: [c:/mingw/bin/../lib/gcc/mingw32/6.3.0/../../../]
  ignore line: [COLLECT_GCC_OPTIONS='-v' '-o' 'CMakeFiles\cmTC_a3b4d.dir\CMakeCXXCompilerABI.cpp.obj' '-c' '-shared-libgcc' '-mtune=generic' '-march=i586']
  ignore line: [Linking CXX executable cmTC_a3b4d.exe]
  ignore line: ["C:\Program Files\CMake\bin\cmake.exe" -E cmake_link_script CMakeFiles\cmTC_a3b4d.dir\link.txt --verbose=1]
  ignore line: ["C:\Program Files\CMake\bin\cmake.exe" -E rm -f CMakeFiles\cmTC_a3b4d.dir/objects.a]
  ignore line: [C:\MinGW\bin\ar.exe cr CMakeFiles\cmTC_a3b4d.dir/objects.a @CMakeFiles\cmTC_a3b4d.dir\objects1.rsp]
  ignore line: [C:\MinGW\bin\g++.exe     -v -Wl --whole-archive CMakeFiles\cmTC_a3b4d.dir/objects.a -Wl --no-whole-archive  -o cmTC_a3b4d.exe -Wl --out-implib libcmTC_a3b4d.dll.a -Wl --major-image-version 0 --minor-image-version 0 ]
  ignore line: [Using built-in specs.]
  ignore line: [COLLECT_GCC=C:\MinGW\bin\g++.exe]
  ignore line: [COLLECT_LTO_WRAPPER=c:/mingw/bin/../libexec/gcc/mingw32/6.3.0/lto-wrapper.exe]
  ignore line: [Target: mingw32]
  ignore line: [Configured with: ../src/gcc-6.3.0/configure --build=x86_64-pc-linux-gnu --host=mingw32 --with-gmp=/mingw --with-mpfr=/mingw --with-mpc=/mingw --with-isl=/mingw --prefix=/mingw --disable-win32-registry --target=mingw32 --with-arch=i586 --enable-languages=c c++ objc obj-c++ fortran ada --with-pkgversion='MinGW.org GCC-6.3.0-1' --enable-static --enable-shared --enable-threads --with-dwarf2 --disable-sjlj-exceptions --enable-version-specific-runtime-libs --with-libiconv-prefix=/mingw --with-libintl-prefix=/mingw --enable-libstdcxx-debug --with-tune=generic --enable-libgomp --disable-libvtv --enable-nls]
  ignore line: [Thread model: win32]
  ignore line: [gcc version 6.3.0 (MinGW.org GCC-6.3.0-1) ]
  ignore line: [COMPILER_PATH=c:/mingw/bin/../libexec/gcc/mingw32/6.3.0/]
  ignore line: [c:/mingw/bin/../libexec/gcc/]
  ignore line: [c:/mingw/bin/../lib/gcc/mingw32/6.3.0/../../../../mingw32/bin/]
  ignore line: [LIBRARY_PATH=c:/mingw/bin/../lib/gcc/mingw32/6.3.0/]
  ignore line: [c:/mingw/bin/../lib/gcc/]
  ignore line: [c:/mingw/bin/../lib/gcc/mingw32/6.3.0/../../../../mingw32/lib/]
  ignore line: [c:/mingw/bin/../lib/gcc/mingw32/6.3.0/../../../]
  ignore line: [COLLECT_GCC_OPTIONS='-v' '-o' 'cmTC_a3b4d.exe' '-shared-libgcc' '-mtune=generic' '-march=i586']
  link line: [ c:/mingw/bin/../libexec/gcc/mingw32/6.3.0/collect2.exe -plugin c:/mingw/bin/../libexec/gcc/mingw32/6.3.0/liblto_plugin-0.dll -plugin-opt=c:/mingw/bin/../libexec/gcc/mingw32/6.3.0/lto-wrapper.exe -plugin-opt=-fresolution=C:\Users\ALEXAN~1\AppData\Local\Temp\ccjCIpTL.res -plugin-opt=-pass-through=-lmingw32 -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lmoldname -plugin-opt=-pass-through=-lmingwex -plugin-opt=-pass-through=-lmsvcrt -plugin-opt=-pass-through=-ladvapi32 -plugin-opt=-pass-through=-lshell32 -plugin-opt=-pass-through=-luser32 -plugin-opt=-pass-through=-lkernel32 -plugin-opt=-pass-through=-lmingw32 -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lmoldname -plugin-opt=-pass-through=-lmingwex -plugin-opt=-pass-through=-lmsvcrt -Bdynamic -u ___register_frame_info -u ___deregister_frame_info -o cmTC_a3b4d.exe c:/mingw/bin/../lib/gcc/mingw32/6.3.0/../../../crt2.o c:/mingw/bin/../lib/gcc/mingw32/6.3.0/crtbegin.o -Lc:/mingw/bin/../lib/gcc/mingw32/6.3.0 -Lc:/mingw/bin/../lib/gcc -Lc:/mingw/bin/../lib/gcc/mingw32/6.3.0/../../../../mingw32/lib -Lc:/mingw/bin/../lib/gcc/mingw32/6.3.0/../../.. --whole-archive CMakeFiles\cmTC_a3b4d.dir/objects.a --no-whole-archive --out-implib libcmTC_a3b4d.dll.a --major-image-version 0 --minor-image-version 0 -lstdc++ -lmingw32 -lgcc_s -lgcc -lmoldname -lmingwex -lmsvcrt -ladvapi32 -lshell32 -luser32 -lkernel32 -lmingw32 -lgcc_s -lgcc -lmoldname -lmingwex -lmsvcrt c:/mingw/bin/../lib/gcc/mingw32/6.3.0/crtend.o]
    arg [c:/mingw/bin/../libexec/gcc/mingw32/6.3.0/collect2.exe] ==> ignore
    arg [-plugin] ==> ignore
    arg [c:/mingw/bin/../libexec/gcc/mingw32/6.3.0/liblto_plugin-0.dll] ==> ignore
    arg [-plugin-opt=c:/mingw/bin/../libexec/gcc/mingw32/6.3.0/lto-wrapper.exe] ==> ignore
    arg [-plugin-opt=-fresolution=C:\Users\ALEXAN~1\AppData\Local\Temp\ccjCIpTL.res] ==> ignore
    arg [-plugin-opt=-pass-through=-lmingw32] ==> ignore
    arg [-plugin-opt=-pass-through=-lgcc_s] ==> ignore
    arg [-plugin-opt=-pass-through=-lgcc] ==> ignore
    arg [-plugin-opt=-pass-through=-lmoldname] ==> ignore
    arg [-plugin-opt=-pass-through=-lmingwex] ==> ignore
    arg [-plugin-opt=-pass-through=-lmsvcrt] ==> ignore
    arg [-plugin-opt=-pass-through=-ladvapi32] ==> ignore
    arg [-plugin-opt=-pass-through=-lshell32] ==> ignore
    arg [-plugin-opt=-pass-through=-luser32] ==> ignore
    arg [-plugin-opt=-pass-through=-lkernel32] ==> ignore
    arg [-plugin-opt=-pass-through=-lmingw32] ==> ignore
    arg [-plugin-opt=-pass-through=-lgcc_s] ==> ignore
    arg [-plugin-opt=-pass-through=-lgcc] ==> ignore
    arg [-plugin-opt=-pass-through=-lmoldname] ==> ignore
    arg [-plugin-opt=-pass-through=-lmingwex] ==> ignore
    arg [-plugin-opt=-pass-through=-lmsvcrt] ==> ignore
    arg [-Bdynamic] ==> ignore
    arg [-u] ==> ignore
    arg [___register_frame_info] ==> ignore
    arg [-u] ==> ignore
    arg [___deregister_frame_info] ==> ignore
    arg [-o] ==> ignore
    arg [cmTC_a3b4d.exe] ==> ignore
    arg [c:/mingw/bin/../lib/gcc/mingw32/6.3.0/../../../crt2.o] ==> ignore
    arg [c:/mingw/bin/../lib/gcc/mingw32/6.3.0/crtbegin.o] ==> ignore
    arg [-Lc:/mingw/bin/../lib/gcc/mingw32/6.3.0] ==> dir [c:/mingw/bin/../lib/gcc/mingw32/6.3.0]
    arg [-Lc:/mingw/bin/../lib/gcc] ==> dir [c:/mingw/bin/../lib/gcc]
    arg [-Lc:/mingw/bin/../lib/gcc/mingw32/6.3.0/../../../../mingw32/lib] ==> dir [c:/mingw/bin/../lib/gcc/mingw32/6.3.0/../../../../mingw32/lib]
    arg [-Lc:/mingw/bin/../lib/gcc/mingw32/6.3.0/../../..] ==> dir [c:/mingw/bin/../lib/gcc/mingw32/6.3.0/../../..]
    arg [--whole-archive] ==> ignore
    arg [CMakeFiles\cmTC_a3b4d.dir/objects.a] ==> ignore
    arg [--no-whole-archive] ==> ignore
    arg [--out-implib] ==> ignore
    arg [libcmTC_a3b4d.dll.a] ==> ignore
    arg [--major-image-version] ==> ignore
    arg [0] ==> ignore
    arg [--minor-image-version] ==> ignore
    arg [0] ==> ignore
    arg [-lstdc++] ==> lib [stdc++]
    arg [-lmingw32] ==> lib [mingw32]
    arg [-lgcc_s] ==> lib [gcc_s]
    arg [-lgcc] ==> lib [gcc]
    arg [-lmoldname] ==> lib [moldname]
    arg [-lmingwex] ==> lib [mingwex]
    arg [-lmsvcrt] ==> lib [msvcrt]
    arg [-ladvapi32] ==> lib [advapi32]
    arg [-lshell32] ==> lib [shell32]
    arg [-luser32] ==> lib [user32]
    arg [-lkernel32] ==> lib [kernel32]
    arg [-lmingw32] ==> lib [mingw32]
    arg [-lgcc_s] ==> lib [gcc_s]
    arg [-lgcc] ==> lib [gcc]
    arg [-lmoldname] ==> lib [moldname]
    arg [-lmingwex] ==> lib [mingwex]
    arg [-lmsvcrt] ==> lib [msvcrt]
    arg [c:/mingw/bin/../lib/gcc/mingw32/6.3.0/crtend.o] ==> ignore
  remove lib [msvcrt]
  remove lib [msvcrt]
  collapse library dir [c:/mingw/bin/../lib/gcc/mingw32/6.3.0] ==> [C:/MinGW/lib/gcc/mingw32/6.3.0]
  collapse library dir [c:/mingw/bin/../lib/gcc] ==> [C:/MinGW/lib/gcc]
  collapse library dir [c:/mingw/bin/../lib/gcc/mingw32/6.3.0/../../../../mingw32/lib] ==> [C:/MinGW/mingw32/lib]
  collapse library dir [c:/mingw/bin/../lib/gcc/mingw32/6.3.0/../../..] ==> [C:/MinGW/lib]
  implicit libs: [stdc++;mingw32;gcc_s;gcc;moldname;mingwex;advapi32;shell32;user32;kernel32;mingw32;gcc_s;gcc;moldname;mingwex]
  implicit dirs: [C:/MinGW/lib/gcc/mingw32/6.3.0;C:/MinGW/lib/gcc;C:/MinGW/mingw32/lib;C:/MinGW/lib]
  implicit fwks: []

One potential source of the issue I identified with Matlab R2020a is in the file FindMatlab.cmake at line 243. It should include "R2020a=9.8". Yet, adding this line does not fix the issue nor change the terminal output.

I'm not sure why the file FindMatlab.cmake is in the project though as it should be included in cmake. In this commit for cmake they added support for matlab R2020a. https://github.com/Kitware/CMake/commit/75331a4578111e580b6b528a731adedbf5ba9597 I do not know at the moment if they did something else that would make it work. Perhaps there's a way to ask cmake to use its own FindMatlab.cmake rather than the (outdated) one in the project?

Best, Alexander

WinterAlexander commented 4 years ago

Interestingly, if I delete the FindMatlab.cmake of the project then the terminal output changes:

-- Creating target: igl::core (igl)
CMake Error at C:/Users/Alexander Winter/MATLAB Drive/computer-animation-nserc/Bartels/cmake/FindPackageHandleStandardArgs.cmake:164 (message):
  Could NOT find Matlab (missing: Matlab_MEX_LIBRARY) (found version
  "unknown")
Call Stack (most recent call first):
  C:/Users/Alexander Winter/MATLAB Drive/computer-animation-nserc/Bartels/cmake/FindPackageHandleStandardArgs.cmake:445 (_FPHSA_FAILURE_MESSAGE)
  C:/Users/Alexander Winter/MATLAB Drive/computer-animation-nserc/Bartels/extern/libigl/cmake/FindMATLAB.cmake:1513 (find_package_handle_standard_args)
  CMakeLists.txt:24 (find_package)

-- Configuring incomplete, errors occurred!
See also "C:/Users/Alexander Winter/MATLAB Drive/computer-animation-nserc/Bartels/matlab/cmake-build-debug/CMakeFiles/CMakeOutput.log".
See also "C:/Users/Alexander Winter/MATLAB Drive/computer-animation-nserc/Bartels/matlab/cmake-build-debug/CMakeFiles/CMakeError.log".

[Finished]

Hinting that it now finds Matlab_MX_LIBRARY which it previously didn't find.

dilevin commented 4 years ago

hmmmmm I think this is because Cmake hardcodes compatible versions of matlab in FindMATLAB.cmake. The bartels version of FindMatlab probably doesn't include matlab 2020

Which version of CMAke are you using currently ?

WinterAlexander commented 4 years ago

@dilevin I am currently using the latest version, 3.17.2.

dilevin commented 4 years ago

and what system are you compiling this on ?

WinterAlexander commented 4 years ago

Windows 7 Profesionnal SP1

dilevin commented 4 years ago

alright I copied over the newest FindMatlab module, with support for matlab2020. Hopefully that will fix this. I don't have MATLAB 2020 installed to test unfortunately :(

WinterAlexander commented 4 years ago

After pulling your change I get the same error as the first one (both Matlab_MEX_LIBRARY and Matlab_MX_LIBRARY missing).

I also tried updating Matlab to update 1 to see if it could fix up the paths or something. No luck

dilevin commented 4 years ago

well that's disappointing.

I will investigate further.

WinterAlexander commented 4 years ago

I am currently installing the Matlab compiler. My matlab installation was pretty basic. Do you know if this add-on is needed or if any other add-ons are?

EDIT: Confirmed installing both the compiler and the SDK doesn't fix the issue

dilevin commented 4 years ago

I haven't been able to reproduce this on my Windows setup.

This worked out of the box for me with Windows X and a trial version of MATLAB 2020a, using Visual Studio 2019 Community Edition as my compiler.

A few more questions to help debug:

Is matlab installed in the default directory ?

What build directory did you use for Bartels?

WinterAlexander commented 4 years ago

Matlab is installed under C:\Program Files\MATLAB\R2020a

Installing R2019b and setting it as the default matlab didn't fix the issue

I'm using MinGW as the compiler and using CLion to run the command. The command is "C:\Program Files\CMake\bin\cmake.exe" -DCMAKE_BUILD_TYPE=Debug -G "CodeBlocks - MinGW Makefiles" "C:\Users\Alexander Winter\MATLAB Drive\computer-animation-nserc\Bartels\matlab"

The build directory (the directory in which cmake outputs its stuff) was mistakenly "cmake-build-debug" instead of "build" (IDE default). After changing it to build, I get this error:

"C:\Program Files\CMake\bin\cmake.exe" -DCMAKE_BUILD_TYPE=Debug -G "CodeBlocks - MinGW Makefiles" "C:\Users\Alexander Winter\MATLAB Drive\computer-animation-nserc\Bartels\matlab"
-- Creating target: igl::core (igl)
CMake Error at C:/Users/Alexander Winter/MATLAB Drive/computer-animation-nserc/Bartels/cmake/FindPackageHandleStandardArgs.cmake:164 (message):
  Could NOT find Matlab (missing: Matlab_MEX_LIBRARY Matlab_MX_LIBRARY
  Matlab_ENGINE_LIBRARY Matlab_DATAARRAY_LIBRARY) (found version "9.8")
Call Stack (most recent call first):
  C:/Users/Alexander Winter/MATLAB Drive/computer-animation-nserc/Bartels/cmake/FindPackageHandleStandardArgs.cmake:445 (_FPHSA_FAILURE_MESSAGE)
  C:/Users/Alexander Winter/MATLAB Drive/computer-animation-nserc/Bartels/cmake/FindMatlab.cmake:1803 (find_package_handle_standard_args)
  CMakeLists.txt:24 (find_package)

-- Configuring incomplete, errors occurred!
See also "C:/Users/Alexander Winter/MATLAB Drive/computer-animation-nserc/Bartels/matlab/build/CMakeFiles/CMakeOutput.log".
See also "C:/Users/Alexander Winter/MATLAB Drive/computer-animation-nserc/Bartels/matlab/build/CMakeFiles/CMakeError.log".

[Finished]

Weirdly enough because of this it doesn't find 2 more macros but it has found the version.

WinterAlexander commented 4 years ago

It works! The problem was how cmake detects if the machine is 64 bits or 32 bits. The code (FindMatlab.cmake line 1566) looks like this:

if(CMAKE_SIZEOF_VOID_P EQUAL 4)
  set(_matlab_64Build FALSE)
else()
  set(_matlab_64Build TRUE)
endif()

This turns out not to work for me, replacing this by set(_matlab_64Build TRUE) fixed the problem for me. Now, this is probably due to the fact my cmake somehow runs in 32 bit because of minGW or cygwin, yet this is overall a dumb way to detect the architecture of the installation. (One could have matlab installed in 32 bits running on a 64 bits machine with a 64 bits cmake...)

Anyway, glad this is solved and I'll probably send a PR to cmake to fix their FindMatlab.cmake script. (The better way would be to read the directory, instead of assuming and getting an error for the wrong directory name).

dilevin commented 4 years ago

oh great, I'm glad you found the solution. Since it works with the standard Windows build tools (Visual Studio) it's likely something to do with MinGW. I'll keep this issue open so that other people with your configuration can find the solution to their problem.

WinterAlexander commented 4 years ago

Turns out libigl doesn't support MinGW or cygwin, so althoug the Cmake runs the compilation fails. So it's not so useful in the end.

dilevin commented 4 years ago

That's too bad. I guess, for now, only Visual Studio is supported on Windows.