File tree 2 files changed +0
-20
lines changed 2 files changed +0
-20
lines changed Original file line number Diff line number Diff line change @@ -17,14 +17,6 @@ https://cmake.org/cmake/help/latest/variable/CMAKE_OSX_ARCHITECTURES.html
17
17
# Find Requirements
18
18
if (APPLE )
19
19
set (CMAKE_OSX_SYSROOT $ENV{SDKROOT} )
20
- find_library (
21
- COCOA_LIBRARY
22
- REQUIRED
23
- NAMES Cocoa
24
- PATHS ${CMAKE_OSX_SYSROOT} /System /Library
25
- PATH_SUFFIXES Frameworks
26
- NO_DEFAULT_PATH
27
- )
28
20
endif (APPLE )
29
21
30
22
#[=============================[ MacOS Options ]=============================]
@@ -45,9 +37,5 @@ endfunction()
45
37
function (macos_generate)
46
38
target_compile_definitions (godot-cpp PUBLIC MACOS_ENABLED UNIX_ENABLED)
47
39
48
- target_link_options (godot-cpp PUBLIC -Wl,-undefined,dynamic_lookup)
49
-
50
- target_link_libraries (godot-cpp INTERFACE ${COCOA_LIBRARY} )
51
-
52
40
common_compiler_flags()
53
41
endfunction ()
Original file line number Diff line number Diff line change @@ -63,14 +63,6 @@ def generate(env):
63
63
env .Append (CCFLAGS = ["-isysroot" , env ["macos_sdk_path" ]])
64
64
env .Append (LINKFLAGS = ["-isysroot" , env ["macos_sdk_path" ]])
65
65
66
- env .Append (
67
- LINKFLAGS = [
68
- "-framework" ,
69
- "Cocoa" ,
70
- "-Wl,-undefined,dynamic_lookup" ,
71
- ]
72
- )
73
-
74
66
env .Append (CPPDEFINES = ["MACOS_ENABLED" , "UNIX_ENABLED" ])
75
67
76
68
# Refer to https://github.com/godotengine/godot/blob/master/platform/macos/detect.py
You can’t perform that action at this time.
0 commit comments