Skip to content

Commit

Permalink
Minor changes in CMakeLists.txt script.
Browse files Browse the repository at this point in the history
  • Loading branch information
LukasBanana committed Sep 15, 2023
1 parent 7555b23 commit 6255731
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,12 @@ endfunction()

function(append_global_property PROP_NAME OUTPUT_LIST NEW_ITEM)
get_property(PropertyList GLOBAL PROPERTY ${PROP_NAME})

# Link base libs first to avoid wrong order in GCC.
# For Clang, this order can cause duplicate linking entries, but shouldn't hurt.
# For now it's not worth the trouble having to distinguish between compiler toolchains (see CMAKE_CXX_COMPILER_ID).
list(APPEND PropertyList ${NEW_ITEM})

set_property(GLOBAL PROPERTY ${PROP_NAME} "${PropertyList}")
set(${OUTPUT_LIST} "${PropertyList}" PARENT_SCOPE)
endfunction()
Expand Down
2 changes: 1 addition & 1 deletion sources/Renderer/Metal/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ if(LLGL_BUILD_RENDERER_METAL)
add_llgl_module(LLGL_Metal LLGL_BUILD_RENDERER_METAL "${FilesMT}")

if(LLGL_MOBILE_PLATFORM)
target_link_libraries(LLGL_Metal PUBLIC LLGL "-framework Foundation -framework UIKit -framework QuartzCore -framework Metal -framework MetalKit")
target_link_libraries(LLGL_Metal LLGL "-framework Foundation -framework UIKit -framework QuartzCore -framework Metal -framework MetalKit")
else()
target_link_libraries(LLGL_Metal LLGL ${METAL_LIBRARY} ${METALKIT_LIBRARY})
endif()
Expand Down

0 comments on commit 6255731

Please sign in to comment.