I am stumping my head on this. I am trying to build libconfig on Windows - an OS that I am very unfamiliary with. I have installed the MSBuild Tools. I am able to compile CMake projects by using the NMake Generator and then compiling the resulting Makefile. libconfig has a .libconfig_vs2017.sln, which seems to be a "solution" file for the version of MSBuild I have installed.
Before compiling I have ran "C:/Program Files (x86)/Microsoft Visual Studio/2017/BuildTools/VC/Auxiliary/Build/vcvars64.bat" because otherwise none of the necessary tools appear to be in the path.
No matter which combination I try, I always keep getting an error that the specified solution configuration is invalid. I have tried the following options:
msbuild libconfig_vs2017.sln
msbuild libconfig_vs2017.sln /p:Configuration=Debug /p:Platform="Any CPU"
msbuild libconfig_vs2017.sln /p:Configuration=Release /p:Platform="Any CPU"
msbuild libconfig_vs2017.sln /p:Configuration=Debug /p:Platform="x64"
msbuild libconfig_vs2017.sln /p:Configuration=Release /p:Platform="x64"
msbuild libconfig_vs2017.sln /p:Configuration=Debug /p:Platform="x86"
msbuild libconfig_vs2017.sln /p:Configuration=Release /p:Platform="x86"
What am I missing here to get this thing to compile on Windows? I am considering installing autotools but given that there is a supposedly ready to use solution file that seems overkill (and is probably difficult on Windows in its own right).