I'm not that related in the C/C++ programming there's a library I wanted to try out needed to be compile using CMake so I built it with MinGW Makefiles generator with the last Boost library it succeeded but when I wish to build my Makefile using the mingw32-make I always get this error :
[ 3%] Building C object geogram/src/lib/geogram/third_party/CMakeFiles/geogram_third_party.dir/LM7/libmeshb7.c.objcc.exe: fatal error: cannot specify '-o' with '-c', '-S' or '-E' with multiple filescompilation terminated.mingw32-make[2]: *** [geogram\src\lib\geogram\third_party\CMakeFiles\geogram_third_party.dir\build.make:76: geogram/src/lib/geogram/third_party/CMakeFiles/geogram_third_party.dir/LM7/libmeshb7.c.obj] Error 1mingw32-make[1]: *** [CMakeFiles\Makefile2:1092: geogram/src/lib/geogram/third_party/CMakeFiles/geogram_third_party.dir/all] Error 2mingw32-make: *** [Makefile:167: all] Error 2
I searched everywhere but didn't found a solution to my problem, does anybody have a solution ?For informations I'm trying to build the TetWild library and I used :CMake 3.28.1Boost Library 1.86.0
Edit: I used the given method to build the project by changing some things for compatibility on WindowsOS, basically i did:
git https://github.com/Yixin-Hu/TetWild.gitcd TetWildmkdir buildcd buildcmake -G "MinGW Makefiles" ..mingw32-make
And then I have the error.(I also added the Path to my Boost Library to the Boost Root in the CMakeList file before the cmake command since I didn't used the deafault location to compile my Boost build)
Edit2: This is the autogenerated Makefile by CMake
# CMAKE generated file: DO NOT EDIT!# Generated by "MinGW Makefiles" Generator, CMake Version 3.28# Default target executed when no arguments are given to make.default_target: all.PHONY : default_target# Allow only one "make -f Makefile2" at a time, but pass parallelism..NOTPARALLEL:#=============================================================================# Special targets provided by cmake.# Disable implicit rules so canonical targets will work..SUFFIXES:# Disable VCS-based implicit rules.% : %,v# Disable VCS-based implicit rules.% : RCS/%# Disable VCS-based implicit rules.% : RCS/%,v# Disable VCS-based implicit rules.% : SCCS/s.%# Disable VCS-based implicit rules.% : s.%.SUFFIXES: .hpux_make_needs_suffix_list# Command-line flag to silence nested $(MAKE).$(VERBOSE)MAKESILENT = -s#Suppress display of executed commands.$(VERBOSE).SILENT:# A target that is always out of date.cmake_force:.PHONY : cmake_force#=============================================================================# Set environment variables for the build.SHELL = cmd.exe# The CMake executable.CMAKE_COMMAND = "C:\Program Files\CMake\bin\cmake.exe"# The command to remove a file.RM = "C:\Program Files\CMake\bin\cmake.exe" -E rm -f# Escaping for special characters.EQUALS = =# The top-level source directory on which CMake was run.CMAKE_SOURCE_DIR = "C:\Users\BudwaelBiais\Documents\00 - GIT\TetSphere\TetWild"# The top-level build directory on which CMake was run.CMAKE_BINARY_DIR = "C:\Users\BudwaelBiais\Documents\00 - GIT\TetSphere\TetWild\build"