1. Set CMAKE_FIND_ROOT_PATH. The vcpkg toolchain will do this itself if it manages to run, but it won't run when cesium-native's CMakeLists.txt is add_subdirectory'd into another project. By making sure this is set, we avoid the need to set `CMAKE_FIND_ROOT_PATH_MODE_LIBRARY` similar to `BOTH` when cross-compiling in order for the build to be able to find the vcpkg dependencies. 2. Detect the triplet as `wasm32-emscripten` if _either_ `CESIUM_TARGET_WASM` is explicitly set, or the `CMAKE_SYSTEM_NAME` is `Emscripten`. This is important when detect-vspkg-triplet is invoked from outside cesium-native's top-level CMakeLists.txt (e.g., when cesium-native is included via add_subdirectory). |
||
|---|---|---|
| .. | ||
| config | ||
| ezvcpkg | ||
| macros | ||
| modules | ||
| compiler.cmake | ||
| defaults.cmake | ||
| detect-vcpkg-triplet.cmake | ||