Skip to content

Commit 9bc665f

Browse files
committed
another go at making a framework as previous attempts were failing
1 parent f4c15a9 commit 9bc665f

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

test/CMakeLists.txt

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,16 @@ set_target_properties(
6565
if(CMAKE_SYSTEM_NAME STREQUAL Darwin)
6666
set_target_properties(
6767
${TARGET_NAME}
68-
PROPERTIES OUTPUT_NAME "gdexample.macos.${GODOTCPP_TARGET}" SUFFIX ".framework"
68+
PROPERTIES
69+
OUTPUT_NAME "libgdexample.macos.${GODOTCPP_TARGET}"
70+
FRAMEWORK TRUE
71+
FRAMEWORK_VERSION A
72+
MACOSX_FRAMEWORK_IDENTIFIER "com.godot.gdexample" # can be anything, doesn't matter much
73+
MACOSX_FRAMEWORK_BUNDLE_VERSION 1.0
74+
MACOSX_FRAMEWORK_SHORT_VERSION_STRING 1.0
75+
# These help with rpath and universal builds
76+
MACOSX_RPATH TRUE
77+
INSTALL_NAME_DIR "@rpath"
78+
BUILD_WITH_INSTALL_NAME_DIR TRUE
6979
)
7080
endif()

0 commit comments

Comments
 (0)