cesium-native
cesium-native copied to clipboard
Unable to build when CESIUM_MSVC_STATIC_RUNTIME_ENABLED is ON
Hi,
When the CESIUM_MSVC_STATIC_RUNTIME_ENABLED option of the CMakeLists.txt is set to ON, building cesium-native fails at the linker stage.
I'm using an up-to-date Visual Studio 2022 + CMake setup.
I know you managed to make this work for cesium-unity (see), didn't have time to investigate further.
Tested with v0.41.0.
@jqntn the trick is to make sure your vcpkg triplet is also set to use the static runtime library. Here's where that's done in cesium-unity: https://github.com/CesiumGS/cesium-unity/blob/v1.13.1/native~/vcpkg/triplets/x64-windows-unity.cmake#L4
Closing this issue as it seems to have been resolved.