From b6b4dba78c90319ded5d6af69dc47ded86883f50 Mon Sep 17 00:00:00 2001 From: Junhao Liao Date: Sun, 6 Oct 2024 03:37:26 +0800 Subject: [PATCH] Revert commented out "Unix Makefiles" generator enforcement. --- CMakeLists.txt | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 862468e4..91b6a28e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -16,15 +16,15 @@ project( CXX 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() + +# 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