Skip to content

Commit

Permalink
explicitly enable objective-c++ in cmake
Browse files Browse the repository at this point in the history
  • Loading branch information
scheffle committed Aug 25, 2024
1 parent e085d27 commit a3a44ff
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions vstgui/cmake/modules/vstgui_init.cmake
Original file line number Diff line number Diff line change
@@ -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()
Expand Down Expand Up @@ -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")
Expand Down

0 comments on commit a3a44ff

Please sign in to comment.