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:
heinrich5991 2022-05-19 11:14:45 +02:00
parent 609987730c
commit 2b7e1c629e
3 changed files with 3 additions and 3 deletions

View file

@ -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})

View file

@ -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)
{