Skip to content

Commit 1cf5935

Browse files
committed
fix macos building with sdl
1 parent 1ef210b commit 1cf5935

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ if (POLICY CMP0141)
99
set(CMAKE_MSVC_DEBUG_INFORMATION_FORMAT "$<IF:$<AND:$<C_COMPILER_ID:MSVC>,$<CXX_COMPILER_ID:MSVC>>,$<$<CONFIG:Debug,RelWithDebInfo>:EditAndContinue>,$<$<CONFIG:Debug,RelWithDebInfo>:ProgramDatabase>>")
1010
endif()
1111

12+
if(APPLE)
13+
enable_language(OBJC)
14+
endif()
15+
1216
project ("Encore" LANGUAGES C CXX)
1317
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall")
1418
# Include sub-projects.

0 commit comments

Comments
 (0)