Skip to content

Commit

Permalink
Update cesium_native.md
Browse files Browse the repository at this point in the history
Changed cesium native build instructions to include -DCMAKE_POSITION_INDEPENDENT_CODE=ON
  • Loading branch information
jasonbeverage committed Mar 29, 2024
1 parent 028215e commit 9f2581a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/source/cesium_native.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ First, you need to build cesium-native. The official instructions for building
git clone git@github.com:CesiumGS/cesium-native.git --recurse-submodules
# Configure cesium-native and disable tests
cmake -B build -S . -G "Visual Studio 16 2019" -A x64 -DCMAKE_INSTALL_PREFIX=install -DCESIUM_TESTS_ENABLED=OFF
cmake -B build -S . -G "Visual Studio 16 2019" -A x64 -DCMAKE_INSTALL_PREFIX=install -DCESIUM_TESTS_ENABLED=OFF -DCMAKE_POSITION_INDEPENDENT_CODE=ON
# Build and install cesium-native. We generally use RelWithDebInfo on Windows but you can also build Release and Debug if you'd like.
cmake --build build --config RelWithDebInfo
cmake --install build --config RelWithDebInfo
Expand Down

0 comments on commit 9f2581a

Please sign in to comment.