1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-09 23:34:20 +00:00

CMake: Warn when the C language is not enabled

This commit is contained in:
reuk 2024-10-16 19:19:17 +01:00 committed by Oliver James
parent 6db2e5ae66
commit ec4dfe1556

View file

@ -44,6 +44,10 @@
include_guard(GLOBAL)
cmake_minimum_required(VERSION 3.22)
if(NOT CMAKE_C_COMPILE_OBJECT)
message(FATAL_ERROR "A C compiler is required to build JUCE. Add 'C' to your project's LANGUAGES.")
endif()
# ==================================================================================================
set(JUCE_CMAKE_UTILS_DIR ${CMAKE_CURRENT_LIST_DIR}