Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cmake: Use external project for building cesium #142

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

johannes-wolf
Copy link

@johannes-wolf johannes-wolf commented Jul 4, 2024

Allows building erdblick using Ninja. The solution to build cesium using CMakes ExternalProject instead of FetchContent is a fixed version taken from #64.


rm -rf build && mkdir build
cd build
mkdir deps
mkdir assets
emcmake cmake -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=OFF ..
cmake --build . -- -j
cmake --build . -- -j"$(nproc)"
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Without specifying the job limit, the build fails if the env. CMAKE_GENERATOR is set to "Ninja".

@josephbirkner
Copy link
Collaborator

Ok 👍

- Enables build using Ninja
- Isolates build to prevent CMake target conflicts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants