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

Allow using other CMake generators besides "Unix Makefiles". #19

Merged
merged 1 commit into from
Oct 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 0 additions & 9 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,6 @@ project(
VERSION 0.1.0
)

# Enforce "Unix Makefiles" because "Ninja" does not work with the Emscripten toolchain on CXX_20
# sources.
if(NOT CMAKE_GENERATOR MATCHES "Unix Makefiles")
message(
FATAL_ERROR
"This project is intended to be built with Unix Makefiles on a Unix system."
)
endif()

# Enable exporting compile commands
set(CMAKE_EXPORT_COMPILE_COMMANDS
ON
Expand Down
1 change: 0 additions & 1 deletion Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ tasks:
- "mkdir -p '{{.OUTPUT_DIR}}'"
- |-
cmake \
-G "Unix Makefiles" \
-DCMAKE_TOOLCHAIN_FILE="{{.G_EMSDK_DIR}}/upstream/emscripten/cmake/Modules/Platform/\
Emscripten.cmake" \
-S "{{.ROOT_DIR}}" \
Expand Down
Loading