[c-host] fixed project for cross compliation for Win on Linux

Thanks @fatalis for your guidance on this
This commit is contained in:
Geoffrey McRae
2019-05-22 14:59:19 +10:00
parent 86f4256b5a
commit 108c7d3aaa
8 changed files with 52 additions and 8 deletions

View File

@@ -36,6 +36,8 @@ Don't ask if you can't figure it out, this code is the very definition of experi
Hint:
### For Windows on Windows
```
mkdir build
cd build
@@ -43,6 +45,24 @@ cmake -G "MSYS Makefiles" ..
make
```
### For Linux on Linux
```
mkdir build
cd build
cmake ..
make
```
### For Windows cross compiling on Linux
```
mkdir build
cd build
cmake -DCMAKE_TOOLCHAIN_FILE=../toolchain-mingw64.cmake ..
make
```
## Where is the log?
It is in your user's temp directory: