Skip to content

Commit

Permalink
Fix macos export
Browse files Browse the repository at this point in the history
  • Loading branch information
CedNaru committed Oct 12, 2024
1 parent 1775646 commit 6cc0702
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ add_compile_definitions(DEV_ENABLED)
# platforms
#add_compile_definitions(WINDOWS_ENABLED)
add_compile_definitions(X11_ENABLED)
#add_compile_definitions(OSX_ENABLED)
#add_compile_definitions(MACOS_ENABLED)
#add_compile_definitions(IOS_ENABLED)
#add_compile_definitions(__ANDROID__)

Expand Down
4 changes: 3 additions & 1 deletion src/gd_kotlin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,10 @@ String GDKotlin::get_path_to_embedded_jvm() {
.get_base_dir()
#if defined(MACOS_ENABLED)
.path_join("../PlugIns/")
#endif
.path_join(String(HOST_EMBEDDED_JRE_DIRECTORY).get_file()) //Only use the last subdir, as the export doesn't keep the relative path
#else
.path_join(HOST_EMBEDDED_JRE_DIRECTORY)
#endif
.path_join(RELATIVE_JVM_LIB_PATH);
}

Expand Down

0 comments on commit 6cc0702

Please sign in to comment.