Skip to content

Commit

Permalink
Allow using other CMake generators besides "Unix Makefiles". (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
junhaoliao authored Oct 6, 2024
1 parent 3457e37 commit 0ca63a2
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
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

0 comments on commit 0ca63a2

Please sign in to comment.