Closed jqntn closed 1 month ago
Thanks for the PR @jqntn! Before we review this, can you please sign the Contributor License Agreement (CLA)? https://github.com/CesiumGS/cesium/blob/main/CONTRIBUTING.md#contributor-license-agreement-cla
@kring I just submitted it as a corporate contributor👍
Thanks @jqntn!
I'll work on getting this merged into main.
Hi,
This change allows cesium-native to be linked either statically or dynamically with the MSVC runtime library, if specified in an upstream CMakeLists via the CMAKE_MSVC_RUNTIME_LIBRARY variable.
This will unblock another PR I'm preparing (https://github.com/CesiumGS/cesium-unity/pull/464) that addresses this issue: CesiumJS/cesium-unity#419, while maintaining compatibility with dynamically linked codebases (e.g. cesium-unreal).
The WITH_CRT_DLL flag in libjpeg-turbo was the only hardcoded flag in this regard.