Fix compilation with VS2017

Enable OpenSubdiv by default for VS2019(CMakeSettings.json)
This commit is contained in:
Syoyo Fujita
2020-04-20 22:12:32 +09:00
parent 5b9a3b4867
commit 64e77a615d
4 changed files with 13 additions and 1 deletions

View File

@@ -15,6 +15,11 @@
"name": "TINYUSDZ_USE_CCACHE",
"value": "False",
"type": "BOOL"
},
{
"name": "TINYUSDZ_WITH_OPENSUBDIV",
"value": "True",
"type": "BOOL"
}
]
},

View File

@@ -56,7 +56,9 @@ Recomended way is simply copy `src` and `include` folder to your app, and add `*
### CMake
cmake build is still provided for CI build. Cmake project is not recommended for embedding TinyUSDZ to your app.
cmake build is still provided for CI build. `CMakeSettings.json` is provided for Visual Studio 2019.
Cmake project is not recommended for embedding TinyUSDZ to your app.
```
$ mkdir build

View File

@@ -29,6 +29,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#include <algorithm>
#include <atomic>
#include <cassert>
#include <cctype> // std::tolower
#include <chrono>
#include <fstream>
#include <map>

4
vcsetup-2017.bat Normal file
View File

@@ -0,0 +1,4 @@
rmdir /s /q build
mkdir build
cmake -G "Visual Studio 15 2017" -A x64 -Bbuild -H.