From a3a44ff6b89879bc7b7aca524dff61ad3f667555 Mon Sep 17 00:00:00 2001 From: scheffle Date: Sun, 25 Aug 2024 17:28:33 +0200 Subject: [PATCH] explicitly enable objective-c++ in cmake --- vstgui/cmake/modules/vstgui_init.cmake | 3 +++ 1 file changed, 3 insertions(+) diff --git a/vstgui/cmake/modules/vstgui_init.cmake b/vstgui/cmake/modules/vstgui_init.cmake index 75147e775..b6c67e4ae 100644 --- a/vstgui/cmake/modules/vstgui_init.cmake +++ b/vstgui/cmake/modules/vstgui_init.cmake @@ -1,5 +1,7 @@ cmake_minimum_required(VERSION 3.5) +enable_language(CXX) + if(NOT DEFINED VSTGUI_ENABLE_DEPRECATED_METHODS) option(VSTGUI_ENABLE_DEPRECATED_METHODS "Enable VSTGUI deprecated methods" ON) endif() @@ -31,6 +33,7 @@ if(CMAKE_HOST_APPLE) endif() set(VSTGUI_LTO_LINKER_FLAGS "") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g") + enable_language(OBJCXX) endif() if(LINUX) set(VSTGUI_LTO_COMPILER_FLAGS "-O3 -flto")