mayah / tinytoml

A header only C++11 library for parsing TOML
BSD 2-Clause "Simplified" License
167 stars 31 forks source link

Make tinytoml compilable with Visual C++ compiler. #6

Closed peria closed 8 years ago

peria commented 8 years ago

Make tinytoml library compilable with Visual C++ compiler 2015. What I did in this PR are

With this PR, tinytoml can be compiled in DOS prompt.

C:\tinytoml>mkdir out
C:\tinytoml>cd out
C:\tinytoml\out>cmake ..\src -G"Visual Studio 14 2015 Win64"
C:\tinytoml\out>cmake --build .
peria commented 8 years ago

... and I confirmed this PR also could be built with clang+ninja on my Linux.

$ mkdir out && cd out
$ cmake ../src -GNinja
$ ninja
$ ninja test
peria commented 8 years ago

@mayah PTL

mayah commented 8 years ago

Looks OK. LGTM