Closed Pokeman2003 closed 2 years ago
I may also be totally misunderstanding how to use this. I am pretty new to C programming, so that might be a problem.
CMake is a build-system generator. If it only finds nmake it will use it. On windows if it finds nothing it’ll still try to use nmake. You can try installing a different build syste like ninja and point CMake to it using -DCMAKE_MAKE_PROGRAM="F:\ninja.exe"
cfltk uses cmake since fltk also uses cmake.
Would you mind breaking that down like I'm 3? I got that it's going to try to use NMake but I have no idea why that's the case, especially since I'm trying to set it up for MingW. Does MSYS2 count as a build system compatible with CMake in the way I need it? My friend directed me towards it, but I have practically zero clue what I'm doing.
Yes msys2 is a saner way of using mingw on windows. It has a package manager which you can use to download the tools you need for the build:
source shell mingw64
pacman -S curl tar git $MINGW_PACKAGE_PREFIX-gcc $MINGW_PACKAGE_PREFIX-cmake $MINGW_PACKAGE_PREFIX-make $MINGW_PACKAGE_PREFIX-ninja --needed
git clone https://github.com/MoAlyousef/cfltk
cd cfltk
git submodule update --init --recursive
Then invoke cmake with your required flags like in the readme
Perhaps I'm just being stupid, but any time I run cmake, it attempts to execute the MSVC compilation path and utilize nmake. That's the jist of what I'm getting, anyways, I have no experience with cmake. It has made compiling this an impossibility, which is a shame because I really do need to use this on a non-git project. Below is the error I get trying to compile it.