Skip to content

Commit

Permalink
Explicitely generate using Visual Studio 17; otherwise the build node…
Browse files Browse the repository at this point in the history
… was using Ninja and running into compiler errors

Signed-off-by: AMZN-Gene <[email protected]>
  • Loading branch information
AMZN-Gene committed Sep 30, 2024
1 parent afe864f commit 86e85b7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions package-system/assimp/build_assimp_windows.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
set "DOWNLOADED_PACKAGE_FOLDERS=%DOWNLOADED_PACKAGE_FOLDERS:\=/%"

@rem # /w compiler option. Assimp USD is implemented using TinyUSDZ which, unfortunately, contains compiler warnings
cmake -S temp/src ^
cmake -S temp/src -G "Visual Studio 17" ^
-DBUILD_SHARED_LIBS=OFF ^
-DCMAKE_BUILD_TYPE=Release ^
-DCMAKE_MODULE_PATH="%DOWNLOADED_PACKAGE_FOLDERS%" ^
Expand All @@ -27,7 +27,7 @@ cmake --build temp/src --config release --parallel 1 || exit /b 1
cmake --build temp/src --config debug --parallel 1 || exit /b 1

@rem # /w compiler option. Assimp USD is implemented using TinyUSDZ which, unfortunately, contains compiler warnings
cmake -S temp/src ^
cmake -S temp/src -G "Visual Studio 17" ^
-DBUILD_SHARED_LIBS=ON ^
-DCMAKE_BUILD_TYPE=Release ^
-DCMAKE_MODULE_PATH="%DOWNLOADED_PACKAGE_FOLDERS%" ^
Expand All @@ -37,7 +37,7 @@ cmake -S temp/src ^
-DASSIMP_WARNINGS_AS_ERRORS=OFF ^
-DCMAKE_CXX_FLAGS="/EHsc /w" ^
temp/src/CMakeLists.txt || exit /b 1
cmake --build temp/src --config release --parallel 1 || exit /b 1
cmake --build temp/src --config debug --parallel 1 || exit /b 1
cmake --build temp/src --config release || exit /b 1
cmake --build temp/src --config debug || exit /b 1

exit /b 0

0 comments on commit 86e85b7

Please sign in to comment.