Skip to content

Commit

Permalink
Revert commented out "Unix Makefiles" generator enforcement.
Browse files Browse the repository at this point in the history
  • Loading branch information
junhaoliao committed Oct 5, 2024
1 parent 27337c8 commit b6b4dba
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b6b4dba

Please sign in to comment.