From 0ca63a26bf58c92dd8af3035df99e2550219c367 Mon Sep 17 00:00:00 2001 From: Junhao Liao Date: Mon, 7 Oct 2024 00:12:28 +0800 Subject: [PATCH] Allow using other CMake generators besides "Unix Makefiles". (#19) --- CMakeLists.txt | 9 --------- Taskfile.yml | 1 - 2 files changed, 10 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 7ffdc66b..bffcbcdd 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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 diff --git a/Taskfile.yml b/Taskfile.yml index 240f33da..59e263b2 100644 --- a/Taskfile.yml +++ b/Taskfile.yml @@ -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}}" \