DaveGamble / cJSON

Ultralightweight JSON parser in ANSI C
MIT License
10.79k stars 3.21k forks source link

CMake generates win-native install paths for MSYS target #326

Open GitMensch opened 5 years ago

GitMensch commented 5 years ago

make install with a previous run of cmake -G "MSYS Makefiles" .. uses the main prefix Program Files (x86)\cJSON (cannot be override by -DCMAKE_INSTALL_PREFIX=/mingw and/or make PREFIX=/mingw install.

FSMaxB commented 5 years ago

Hmm, this might be related to the GNUInstallDirs module.

I'll try to take a look at it tomorrow, but no guarantees. Not sure how easy it will be for me to reproduce your setup.

GitMensch commented 5 years ago

Not sure how easy it will be for me to reproduce your setup. I could at least provide the MinGW environment I've used for the test as 7z if needed...

FSMaxB commented 5 years ago

I think that might help since MinGW probably works with wine. (I don't actually have a Windows system I could test things on, except maybe a VM lying around somewhere).