mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
CMake: Warn when the C language is not enabled
This commit is contained in:
parent
6db2e5ae66
commit
ec4dfe1556
1 changed files with 4 additions and 0 deletions
|
|
@ -44,6 +44,10 @@
|
||||||
include_guard(GLOBAL)
|
include_guard(GLOBAL)
|
||||||
cmake_minimum_required(VERSION 3.22)
|
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}
|
set(JUCE_CMAKE_UTILS_DIR ${CMAKE_CURRENT_LIST_DIR}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue