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")