mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
Make Objective-C file Objective-C++
This removes the last C file we have, allows us to set C++ options unilaterally.
This commit is contained in:
parent
609987730c
commit
2b7e1c629e
|
@ -669,8 +669,8 @@ elseif(TARGET_OS STREQUAL "mac")
|
|||
find_library(OPENGL OpenGL)
|
||||
find_library(SECURITY Security)
|
||||
set(PLATFORM_CLIENT
|
||||
src/macos/client.mm
|
||||
src/macos/notifications.mm
|
||||
src/macoslaunch/client.m
|
||||
)
|
||||
set(PLATFORM_CLIENT_LIBS ${COCOA} ${OPENGL})
|
||||
set(PLATFORM_LIBS ${CARBON} ${SECURITY})
|
||||
|
@ -2319,7 +2319,7 @@ if(SERVER)
|
|||
list(APPEND TARGETS_LINK ${TARGET_SERVER})
|
||||
|
||||
if(TARGET_OS AND TARGET_OS STREQUAL "mac")
|
||||
set(SERVER_LAUNCHER_SRC src/macoslaunch/server.mm)
|
||||
set(SERVER_LAUNCHER_SRC src/macos/server.mm)
|
||||
set(TARGET_SERVER_LAUNCHER ${TARGET_SERVER}-Launcher)
|
||||
add_executable(${TARGET_SERVER_LAUNCHER} ${SERVER_LAUNCHER_SRC})
|
||||
target_link_libraries(${TARGET_SERVER_LAUNCHER} ${COCOA})
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
#import <Cocoa/Cocoa.h>
|
||||
|
||||
extern int TWMain(int argc, const char **argv);
|
||||
extern "C" int TWMain(int argc, const char **argv);
|
||||
|
||||
int main(int argc, const char **argv)
|
||||
{
|
Loading…
Reference in a new issue